summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-14 22:08:58 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-14 22:08:58 +0100
commit9f8ba0ea5196bccf73f2f26a3dc8a55907faa02f (patch)
tree1f0230a839b5990571974b932ce2746b0a994671 /src/settings.cpp
parent186e96c878c432914f4f3b9e73a28b0b96103d3d (diff)
Add setting to automatically hide download after installation.
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 27108162..7047fa44 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -2258,6 +2258,16 @@ void InterfaceSettings::setMetaDownloads(bool b)
set(m_Settings, "Settings", "meta_downloads", b);
}
+bool InterfaceSettings::hideDownloadsAfterInstallation() const
+{
+ return get<bool>(m_Settings, "Settings", "autohide_downloads", false);
+}
+
+void InterfaceSettings::setHideDownloadsAfterInstallation(bool b)
+{
+ set(m_Settings, "Settings", "autohide_downloads", b);
+}
+
bool InterfaceSettings::hideAPICounter() const
{
return get<bool>(m_Settings, "Settings", "hide_api_counter", false);