Test log loading memory fixes; Test interface language changing environment setting error fix

pull/228/head
parent 9aeb326f30
commit a97df90267

@ -106,6 +106,7 @@ void yon_installation_progress_update(GFileMonitor *,GFile *,GFile *,GFileMonito
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->InstallationProgress), fraction / 100); gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->InstallationProgress), fraction / 100);
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->PackageInstallationProgress), 0); gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->PackageInstallationProgress), 0);
gtk_label_set_text(GTK_LABEL(widgets->PackageInstallationLabel), ""); gtk_label_set_text(GTK_LABEL(widgets->PackageInstallationLabel), "");
if (!yon_char_is_empty(current_copy)) free(current_copy);
} else { } else {
gtk_widget_show(gtk_widget_get_parent(widgets->PackageInstallationProgress)); gtk_widget_show(gtk_widget_get_parent(widgets->PackageInstallationProgress));
@ -114,7 +115,9 @@ void yon_installation_progress_update(GFileMonitor *,GFile *,GFile *,GFileMonito
double fraction = atof(parsed[2]) / 100; double fraction = atof(parsed[2]) / 100;
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->PackageInstallationProgress), fraction); gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->PackageInstallationProgress), fraction);
gtk_label_set_text(GTK_LABEL(widgets->PackageInstallationLabel), yon_char_parsed_to_string(parsed, size, " ")); gtk_label_set_text(GTK_LABEL(widgets->PackageInstallationLabel), yon_char_parsed_to_string(parsed, size, " "));
yon_char_parsed_free(parsed,size);
} }
if (!yon_char_is_empty(current_copy)) free(current_copy);
} }
} }

@ -89,7 +89,7 @@ void yon_startup_language_init(){
} }
void yon_main_window_update_locale(main_window *widgets){ void yon_main_window_update_locale(main_window *widgets){
char *locale = config(installer_locale_parameter); volatile char *locale = config(installer_locale_parameter);
if (yon_char_is_empty(locale)){ if (yon_char_is_empty(locale)){
char *sys_locale = config(lang_parameter); char *sys_locale = config(lang_parameter);

Loading…
Cancel
Save