From 966c89d0aaf478c75c83db52a4c028c1d71f4ff3 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Mon, 22 Jul 2024 10:02:56 +0600 Subject: [PATCH] Test sync for log window and progress bar --- source/ubinstall-gtk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index 90ede0a..533cfbf 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -619,7 +619,8 @@ gboolean yon_installation_progress_update(void *data){ main_window *widgets = (main_window*)data; while (gtk_events_pending()) gtk_main_iteration(); int size; - while (main_config.log_progress_buzy){}; + while (main_config.log_progress_buzy){ + while (gtk_events_pending()) gtk_main_iteration();}; main_config.log_progress_buzy=1; config_str text = yon_file_open(progress_path,&size); main_config.log_progress_buzy=0;