Fixed progress bar

pull/69/head
YanTheKaller 1 year ago
parent 116efcb1f2
commit 139c68ba32

@ -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);
@ -1014,14 +1014,17 @@ gboolean yon_installation_progress_update(void *data) {
main_window *widgets = (main_window*)data;
int size;
printf("\n\nCheck buzy\n\n");
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;
printf("\n\ncycle\n\n");
if (size) {
printf("%s\n\n\n\n\n",text[size-1]);
if (!yon_char_is_empty(text[size-1]) && text[size-1][0] == '(') {
char *current_copy = yon_char_new(text[size-1]);
char *percentage = yon_char_divide_search(current_copy, ")", -1);

Loading…
Cancel
Save