Исправлен баг с сохранением ОС

pull/18/head
Igor Belitskiy 3 years ago
parent cd8b5de821
commit e3b964508a

@ -611,6 +611,8 @@ bool MainWindow::focus_out_txt_login(GdkEventFocus*) {
}
bool MainWindow::focus_out_txt_kernel(GdkEventFocus*) {
auto selection_kernel = treeViewKernel->get_selection();
selection_kernel->unselect_all();
this->set_entry_to_tree_view(list_store_kernel, *entryKernel, vec_Option_kernel, size_kernel, "GRUB_CMDLINE_LINUX");
this->set_row_all(map_cmd_selection, list_store_kernel, vec_Option_kernel, size_kernel, "GRUB_CMDLINE_LINUX");
flag_blocked_tree_view = false;
@ -618,12 +620,16 @@ bool MainWindow::focus_out_txt_kernel(GdkEventFocus*) {
}
bool MainWindow::focus_out_txt_IPT(GdkEventFocus*) {
auto selection_IPT = treeViewIPT->get_selection();
selection_IPT->unselect_all();
this->set_entry_to_tree_view(list_store_IPT, *entryIPT, vec_Option_IPT, size_IPT, "GRUB_TERMINAL_INPUT");
this->set_row_all(map_cmd_selection, list_store_IPT, vec_Option_IPT, size_IPT, "GRUB_TERMINAL_INPUT");
flag_blocked_tree_view = false;
return true;
}
bool MainWindow::focus_out_txt_OTT(GdkEventFocus*) {
auto selection_OTT = treeViewIPT->get_selection();
selection_OTT->unselect_all();
this->set_entry_to_tree_view(list_store_OTT, *entryOTT, vec_Option_OTT, size_OTT, "GRUB_TERMINAL_OUTPUT");
this->set_row_all(map_cmd_selection, list_store_OTT, vec_Option_OTT, size_OTT, "GRUB_TERMINAL_OUTPUT");
flag_blocked_tree_view = false;
@ -896,7 +902,7 @@ void MainWindow::set_data_cfg() {
}
string name_os = entrListOS->get_text();
if (name_os.length() != 0) {
map_cmd_selection["GRUB_DEFAULT"] = "\"" + name_os + "\"";
map_cmd_selection["GRUB_DEFAULT"] = name_os;
}
else {
map_cmd_selection["GRUB_DEFAULT"] = "";

Loading…
Cancel
Save