diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-14 22:08:58 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-14 22:08:58 +0100 |
| commit | 9f8ba0ea5196bccf73f2f26a3dc8a55907faa02f (patch) | |
| tree | 1f0230a839b5990571974b932ce2746b0a994671 /src/settings.cpp | |
| parent | 186e96c878c432914f4f3b9e73a28b0b96103d3d (diff) | |
Add setting to automatically hide download after installation.
Diffstat (limited to 'src/settings.cpp')
| -rw-r--r-- | src/settings.cpp | 10 |
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); |
