summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-17 13:00:01 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-17 13:00:01 +0100
commit704490e3157dbb9916fc3fb42b5503462a482f06 (patch)
treeee5e4fd41dcb5efa2379e3203401a2e7186d74d7 /src/settings.cpp
parent2b1f01cba2a50a17db69187a1b4cbecf5a0fb65d (diff)
Add setting to not check for updates after installing mods.
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 7047fa44..27c02ede 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -2238,6 +2238,16 @@ void InterfaceSettings::setSaveFilters(bool b)
set(m_Settings, "Settings", "save_filters", b);
}
+bool InterfaceSettings::checkUpdateAfterInstallation() const
+{
+ return get<bool>(m_Settings, "Settings", "autocheck_update_install", true);
+}
+
+void InterfaceSettings::setCheckUpdateAfterInstallation(bool b)
+{
+ set(m_Settings, "Settings", "autocheck_update_install", b);
+}
+
bool InterfaceSettings::compactDownloads() const
{
return get<bool>(m_Settings, "Settings", "compact_downloads", false);