summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorProject579 <star579avatar@gmail.com>2018-08-20 12:55:02 -0500
committerLostDragonist <lost.dragonist@gmail.com>2018-12-12 20:16:54 -0600
commit57178f898838afed6e7a50413899d6082aad9989 (patch)
treef4c7a00c5aa141225c2c2d6c4b6172761cd13b40 /src/settings.cpp
parent49159de5d7084bf1ac159e3e37e2b406cdd87dbf (diff)
Added button to disable Archives in Data Tree and entirely.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 18e893cb..eb5b372f 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -474,6 +474,11 @@ uint Settings::getMotDHash() const
return m_Settings.value("motd_hash", 0).toUInt();
}
+bool Settings::archiveParsing() const
+{
+ return m_Settings.value("Settings/archive_parsing", true).toBool();
+}
+
QVariant Settings::pluginSetting(const QString &pluginName, const QString &key) const
{
auto iterPlugin = m_PluginSettings.find(pluginName);
@@ -1085,6 +1090,7 @@ Settings::WorkaroundsTab::WorkaroundsTab(Settings *m_parent,
, m_forceEnableBox(m_dialog.findChild<QCheckBox *>("forceEnableBox"))
, m_displayForeignBox(m_dialog.findChild<QCheckBox *>("displayForeignBox"))
, m_lockGUIBox(m_dialog.findChild<QCheckBox *>("lockGUIBox"))
+ , m_enableArchiveParsingBox(m_dialog.findChild<QCheckBox *>("enableArchiveParsingBox"))
{
m_appIDEdit->setText(m_parent->getSteamAppID());
@@ -1119,7 +1125,8 @@ Settings::WorkaroundsTab::WorkaroundsTab(Settings *m_parent,
m_forceEnableBox->setChecked(m_parent->forceEnableCoreFiles());
m_displayForeignBox->setChecked(m_parent->displayForeign());
m_lockGUIBox->setChecked(m_parent->lockGUI());
-
+ m_enableArchiveParsingBox->setChecked(m_parent->archiveParsing());
+
m_dialog.setExecutableBlacklist(m_parent->executablesBlacklist());
}
@@ -1137,6 +1144,7 @@ void Settings::WorkaroundsTab::update()
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/archive_parsing", m_enableArchiveParsingBox->isChecked());
m_Settings.setValue("Settings/executable_blacklist", m_dialog.getExecutableBlacklist());