Fixed close postsave action combo box

pull/314/head
parent 447b7432df
commit 98d13b32f5

@ -5336,4 +5336,7 @@ msgstr ""
#: source/libublsettingsui-gtk3.h:675
msgid "Uncheck all"
msgstr ""
msgid "Close installer"
msgstr ""

@ -5531,4 +5531,7 @@ msgstr "Предоставить root-доступ"
#: source/libublsettingsui-gtk3.h:675
msgid "Uncheck all"
msgstr "Снять всё"
msgstr "Снять всё"
msgid "Close installer"
msgstr "Закрыть установщик"

@ -301,7 +301,14 @@ int yon_page_save(main_window *widgets, enum YON_PAGES page){
return yon_installation_start(widgets);
break;
case YON_PAGE_CONFIGURE_END:
return yon_config_save(widgets);
int status = yon_config_save(widgets);
if (status){
const char *endaction = gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->ConfigHubRebootCombo));
if (!yon_char_is_empty(endaction)&&!strcmp(endaction,"close")){
on_exit_accepted(widgets);
}
}
return status;
default:return 1;
}
return 1;

Loading…
Cancel
Save