From 758d58591feff0d2e13b64d4cda1e8e84288c827 Mon Sep 17 00:00:00 2001 From: YanTheKaller Date: Thu, 12 Sep 2024 12:13:05 +0000 Subject: [PATCH] Fixed progress bar --- source/ubinstall-gtk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index bd4e352..ddfd30e 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -972,7 +972,7 @@ void *on_config_save(void *data){ int size=0; config_str parameters = yon_config_get_all(&size); - main_config.install_thread=(GThread*)0x1; + // main_config.install_thread=(GThread*)0x1; FILE *file = fopen(progress_path,"w"); if (file) fclose(file); @@ -1806,7 +1806,7 @@ void on_page_navigation_clicked(GtkWidget *self, main_window *widgets){ pthread_t tid; pthread_create(&tid,&attr,on_config_save,widgets); - // memcpy(&main_config.install_thread,&tid,sizeof(pthread_t)); + memcpy(&main_config.install_thread,&tid,sizeof(pthread_t)); } gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_INSTALLATION); } break;