From b02b37d384880ec01a4e7445854c8cd480aa686e Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Wed, 7 Aug 2024 10:26:46 +0600 Subject: [PATCH] fixed configuration not launching if installation process has finished --- source/ubinstall-gtk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index 1540b16..8a275a7 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -956,7 +956,7 @@ gboolean yon_installation_progress_update(void *data) { yon_char_parsed_free(text, size); if (!strstr(percentage, "#pb")) { - double fraction = atof(percentage); + double fraction = atof(percentage+1); gtk_label_set_text(GTK_LABEL(widgets->InstallationLabel), current_copy); gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->InstallationProgress), fraction / 100); gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->PackageInstallationProgress), 0); @@ -1637,9 +1637,11 @@ void on_page_navigation_clicked(GtkWidget *self, main_window *widgets){ if (gtk_progress_bar_get_fraction(GTK_PROGRESS_BAR(widgets->InstallationProgress))>0.9){ pthread_t tid; pthread_create(&tid,NULL,on_setup_system_configuration,widgets); + yon_debug_output("%s\n","installation ending configuration startup"); } else { pthread_t tid; pthread_create(&tid,NULL,on_save_system_configuration,widgets); + yon_debug_output("%s\n","installation process configuration startup"); } main_config.save_done=1; yon_debug_output("Save changed to: %s\n",yon_char_from_int(main_config.save_done));