summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorQudix <17361645+Qudix@users.noreply.github.com>2021-09-11 20:42:20 -0500
committerQudix <17361645+Qudix@users.noreply.github.com>2021-09-11 20:42:20 -0500
commitacf1730093c050a3316047eca66ca0cbb2f88a20 (patch)
tree89ac461ba149cbe15a066246d50648c3bce50669 /src/settings.cpp
parentb5800435aa0c2396194f9e287d27a20c0e89203d (diff)
Add a toggle for the Alt key showing the menubar
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 1e915603..d3cdc910 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -2301,6 +2301,16 @@ void InterfaceSettings::setShowChangeGameConfirmation(bool b)
set(m_Settings, "Settings", "show_change_game_confirmation", b);
}
+bool InterfaceSettings::showMenubarOnAlt() const
+{
+ return get<bool>(m_Settings, "Settings", "show_menubar_on_alt", true);
+}
+
+void InterfaceSettings::setShowMenubarOnAlt(bool b)
+{
+ set(m_Settings, "Settings", "show_menubar_on_alt", b);
+}
+
bool InterfaceSettings::doubleClicksOpenPreviews() const
{
return get<bool>(m_Settings, "Settings", "double_click_previews", true);