diff options
| author | Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> | 2026-05-15 09:23:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-15 02:23:09 -0500 |
| commit | 55de581ee9829c5fcb5bae37504fad4e89cac721 (patch) | |
| tree | d126ea862033f96da7381fc40322216af51adf66 /src/settings.cpp | |
| parent | 6748953d35516b948d83dd135cc970c805efeff0 (diff) | |
Add setting to show notifications when downloads complete or fail (#2338)
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 849f64ec..a7c46458 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -2302,6 +2302,16 @@ void InterfaceSettings::setHideDownloadsAfterInstallation(bool b) set(m_Settings, "Settings", "autohide_downloads", b); } +bool InterfaceSettings::showDownloadNotifications() const +{ + return get<bool>(m_Settings, "Settings", "download_notifications", false); +} + +void InterfaceSettings::setShowDownloadNotifications(bool b) +{ + set(m_Settings, "Settings", "download_notifications", b); +} + bool InterfaceSettings::hideAPICounter() const { return get<bool>(m_Settings, "Settings", "hide_api_counter", false); |
