summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2018-12-08 11:15:16 -0600
committerLostDragonist <lost.dragonist@gmail.com>2018-12-08 11:15:16 -0600
commit93763a93640754f468d4a5d1aeaf5ad4effa6d56 (patch)
treea28d1393a514b47e242e3814d5fb646ac9da1039 /src/settings.cpp
parenta94977988bb587a290ae8c448baf742ed1eee79f (diff)
Add workaround setting to prevent the GUI from locking when running an executable
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 3abb0988..b067106f 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -210,6 +210,11 @@ bool Settings::forceEnableCoreFiles() const
return m_Settings.value("Settings/force_enable_core_files", true).toBool();
}
+bool Settings::lockGUI() const
+{
+ return m_Settings.value("Settings/lock_gui", true).toBool();
+}
+
bool Settings::automaticLoginEnabled() const
{
return m_Settings.value("Settings/nexus_login", false).toBool();
@@ -1060,6 +1065,7 @@ Settings::WorkaroundsTab::WorkaroundsTab(Settings *m_parent,
, m_hideUncheckedBox(m_dialog.findChild<QCheckBox *>("hideUncheckedBox"))
, m_forceEnableBox(m_dialog.findChild<QCheckBox *>("forceEnableBox"))
, m_displayForeignBox(m_dialog.findChild<QCheckBox *>("displayForeignBox"))
+ , m_lockGUIBox(m_dialog.findChild<QCheckBox *>("lockGUIBox"))
{
m_appIDEdit->setText(m_parent->getSteamAppID());
@@ -1093,6 +1099,7 @@ Settings::WorkaroundsTab::WorkaroundsTab(Settings *m_parent,
m_hideUncheckedBox->setChecked(m_parent->hideUncheckedPlugins());
m_forceEnableBox->setChecked(m_parent->forceEnableCoreFiles());
m_displayForeignBox->setChecked(m_parent->displayForeign());
+ m_lockGUIBox->setChecked(m_parent->lockGUI());
m_dialog.setExecutableBlacklist(m_parent->executablesBlacklist());
@@ -1110,6 +1117,7 @@ void Settings::WorkaroundsTab::update()
m_Settings.setValue("Settings/hide_unchecked_plugins", m_hideUncheckedBox->isChecked());
m_Settings.setValue("Settings/force_enable_core_files", m_forceEnableBox->isChecked());
m_Settings.setValue("Settings/display_foreign", m_displayForeignBox->isChecked());
+ m_Settings.setValue("Settings/lock_gui", m_lockGUIBox->isChecked());
m_Settings.setValue("Settings/executable_blacklist", m_dialog.getExecutableBlacklist());