|
|
|
|
@ -328,6 +328,7 @@ vector<tuple<string, vector<string>>> MainWindow::format_os_list(vector<string>
|
|
|
|
|
vector<string> MainWindow::pars_os(vector<string> &os_control_list) {
|
|
|
|
|
string str_list_os = obj_process_call.call_all_sections(cmd_pars_list_os);
|
|
|
|
|
os_control_list = Utils::split(str_list_os, '\n');
|
|
|
|
|
os_control_list.insert(os_control_list.begin(),LAST_MODE_LABEL);
|
|
|
|
|
return os_control_list;
|
|
|
|
|
}
|
|
|
|
|
string MainWindow::pars_last_launched_os() {
|
|
|
|
|
@ -1313,7 +1314,9 @@ void MainWindow::set_data_cfg() {
|
|
|
|
|
map_cmd_selection["GRUB_TIMEOUT"] = "";
|
|
|
|
|
}
|
|
|
|
|
string name_os = entrListOS->get_text();
|
|
|
|
|
if (name_os.length() != 0) {
|
|
|
|
|
if (strstr(name_os.c_str(),LAST_MODE_LABEL)){
|
|
|
|
|
map_cmd_selection["GRUB_DEFAULT"] = "";
|
|
|
|
|
} else if (name_os.length() != 0) {
|
|
|
|
|
map_cmd_selection["GRUB_DEFAULT"] = name_os;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
|