mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
move option up
This commit is contained in:
parent
ba2ef814de
commit
6c165a4ca0
|
@ -948,6 +948,28 @@ void GuiMenu::openOtherOptions()
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Exit button configuration.
|
||||||
|
auto exit_button_config = std::make_shared<OptionListComponent<std::string>>
|
||||||
|
(mWindow, getHelpStyle(), "EXIT BUTTON COMBO", false);
|
||||||
|
std::string selectedExitButtonCombo = Settings::getInstance()->getString("ExitButtonCombo");
|
||||||
|
exit_button_config->add("F4", "F4", selectedExitButtonCombo == "F4");
|
||||||
|
exit_button_config->add("Alt + F4", "AltF4", selectedExitButtonCombo == "AltF4");
|
||||||
|
#if defined(_WIN64) || defined(__unix__)
|
||||||
|
exit_button_config->add("Alt + Q", "AltQ", selectedExitButtonCombo == "AltQ");
|
||||||
|
#endif
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
exit_button_config->add("\u2318 + Q", "CmdQ", selectedExitButtonCombo == "CmdQ");
|
||||||
|
#endif
|
||||||
|
s->addWithLabel("EXIT BUTTON COMBO", exit_button_config);
|
||||||
|
s->addSaveFunc([exit_button_config, s] {
|
||||||
|
if (exit_button_config->getSelected() !=
|
||||||
|
Settings::getInstance()->getString("ExitButtonCombo")) {
|
||||||
|
Settings::getInstance()->setString("ExitButtonCombo",
|
||||||
|
exit_button_config->getSelected());
|
||||||
|
s->setNeedsSaving();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// When to save game metadata.
|
// When to save game metadata.
|
||||||
auto save_gamelist_mode = std::make_shared<OptionListComponent<std::string>>
|
auto save_gamelist_mode = std::make_shared<OptionListComponent<std::string>>
|
||||||
(mWindow, getHelpStyle(), "WHEN TO SAVE METADATA", false);
|
(mWindow, getHelpStyle(), "WHEN TO SAVE METADATA", false);
|
||||||
|
@ -1184,28 +1206,6 @@ void GuiMenu::openOtherOptions()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Exit button configuration.
|
|
||||||
auto exit_button_config = std::make_shared<OptionListComponent<std::string>>
|
|
||||||
(mWindow, getHelpStyle(), "EXIT BUTTON COMBO", false);
|
|
||||||
std::string selectedExitButtonCombo = Settings::getInstance()->getString("ExitButtonCombo");
|
|
||||||
exit_button_config->add("F4", "F4", selectedExitButtonCombo == "F4");
|
|
||||||
exit_button_config->add("Alt + F4", "AltF4", selectedExitButtonCombo == "AltF4");
|
|
||||||
#if defined(_WIN64) || defined(__unix__)
|
|
||||||
exit_button_config->add("Alt + Q", "AltQ", selectedExitButtonCombo == "AltQ");
|
|
||||||
#endif
|
|
||||||
#if defined(__APPLE__)
|
|
||||||
exit_button_config->add("\u2318 + Q", "CmdQ", selectedExitButtonCombo == "CmdQ");
|
|
||||||
#endif
|
|
||||||
s->addWithLabel("EXIT BUTTON COMBO", exit_button_config);
|
|
||||||
s->addSaveFunc([exit_button_config, s] {
|
|
||||||
if (exit_button_config->getSelected() !=
|
|
||||||
Settings::getInstance()->getString("ExitButtonCombo")) {
|
|
||||||
Settings::getInstance()->setString("ExitButtonCombo",
|
|
||||||
exit_button_config->getSelected());
|
|
||||||
s->setNeedsSaving();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// macOS requires root privileges to reboot and power off so it doesn't make much
|
// macOS requires root privileges to reboot and power off so it doesn't make much
|
||||||
// sense to enable this setting and menu entry for that operating system.
|
// sense to enable this setting and menu entry for that operating system.
|
||||||
#if !defined(__APPLE__)
|
#if !defined(__APPLE__)
|
||||||
|
|
Loading…
Reference in a new issue