Test fix for completion before configuration finish

pull/50/head
parent fa41c3c1b7
commit c9f6c4b526

@ -1147,6 +1147,14 @@ void *on_setup_system_configuration(void * data){
free(command);
if (parameter_string) free(parameter_string);
}
if (main_config.install_complete){
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_COMPLETION);
} else {
printf("still deactivated\n");
gtk_widget_set_sensitive(widgets->CancelInstallButton,0);
gtk_widget_set_sensitive(widgets->NextButton,0);
gtk_widget_set_sensitive(widgets->BackButton,0);
}
return NULL;
}
@ -1190,6 +1198,10 @@ void *on_save_system_configuration(void * data){
free(command);
if (parameter_string) free(parameter_string);
}
printf("still deactivated\n");
gtk_widget_set_sensitive(widgets->CancelInstallButton,0);
gtk_widget_set_sensitive(widgets->NextButton,0);
gtk_widget_set_sensitive(widgets->BackButton,0);
return NULL;
}
@ -1680,14 +1692,7 @@ void on_page_navigation_clicked(GtkWidget *self, main_window *widgets){
yon_debug_output("Save changed to: %s\n",yon_char_from_int(main_config.save_done));
yon_debug_output("Install state: %s\n",yon_char_from_int(main_config.install_complete));
if (main_config.install_complete){
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_COMPLETION);
} else {
printf("still deactivated\n");
gtk_widget_set_sensitive(widgets->CancelInstallButton,0);
gtk_widget_set_sensitive(widgets->NextButton,0);
gtk_widget_set_sensitive(widgets->BackButton,0);
}
} else {
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_CONFIGURE_END);
}

Loading…
Cancel
Save