Fixed scenario button visibility

pull/396/head
parent f7d61886c5
commit cd82399592

@ -62,25 +62,28 @@ void on_config_local_load(GtkWidget *,main_window *widgets){
yon_load_proceed(YON_CONFIG_LOCAL);
main_config.load_mode=YON_CONFIG_LOCAL;
yon_main_window_update_locale(widgets);
yon_page_init(widgets,gtk_notebook_get_current_page(GTK_NOTEBOOK(widgets->Notebook)));
yon_navigation_buttons_set_sensetiveness(widgets);
}
void on_config_custom_load(GtkWidget *,main_window *){
void on_config_custom_load(GtkWidget *,main_window *widgets){
char *temp_custom_path = NULL;
yon_load_proceed(YON_CONFIG_CUSTOM);
if (!yon_char_is_empty(main_config.config_load_path)){
main_config.load_mode=YON_CONFIG_CUSTOM;
free(temp_custom_path);
}
yon_navigation_buttons_set_sensetiveness(widgets);
}
void on_config_custom_load_last(GtkWidget *,main_window *){
void on_config_custom_load_last(GtkWidget *,main_window *widgets){
yon_config_clean();
if (!yon_char_is_empty(config_get_default_command))
yon_config_load_config(YON_CONFIG_DEFAULT,config_get_default_command,NULL);
char *command = config_get_command(main_config.config_load_path);
yon_config_load_config(YON_CONFIG_CUSTOM,command,NULL);
main_config.load_mode=YON_CONFIG_CUSTOM;
int page = gtk_notebook_get_current_page(GTK_NOTEBOOK(widgets->Notebook));
yon_page_init(widgets,page);
}
void on_config_global_local_save(GtkWidget *,main_window *widgets){

Loading…
Cancel
Save