summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2021-01-18 08:21:41 +0100
committerGitHub <noreply@github.com>2021-01-18 08:21:41 +0100
commit59f055ba93381b965cdc04557ac1dce2df36bd07 (patch)
treeda831741fc6100921fe47ad2f20ab4f8b5605ef2 /src/settings.cpp
parent2b1f01cba2a50a17db69187a1b4cbecf5a0fb65d (diff)
parent1644d30e59e03b90a8a392ff54cdec527d4a85a5 (diff)
Merge pull request #1368 from Holt59/new-settings
Add settings to not check update on mod install and to auto-collapse on hover.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 7047fa44..142d3f39 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -2238,6 +2238,26 @@ void InterfaceSettings::setSaveFilters(bool b)
set(m_Settings, "Settings", "save_filters", b);
}
+bool InterfaceSettings::autoCollapseOnHover() const
+{
+ return get<bool>(m_Settings, "Settings", "auto_collapse_on_hover", false);
+}
+
+void InterfaceSettings::setAutoCollapseOnHover(bool b)
+{
+ set(m_Settings, "Settings", "auto_collapse_on_hover", 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);