Add option to hide status bar (#5983)

* reorganize actions

* add setting to settingsCache

* use setting

* add shortcut

* fix typo
This commit is contained in:
RickyRister 2025-06-13 05:55:04 -07:00 committed by GitHub
parent f059643187
commit da2488f7d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 44 additions and 3 deletions

View file

@ -237,6 +237,7 @@ SettingsCache::SettingsCache()
redirectCacheTtl = settings->value("personal/redirectCacheTtl", NETWORK_REDIRECT_CACHE_TTL_DEFAULT).toInt();
picDownload = settings->value("personal/picturedownload", true).toBool();
showStatusBar = settings->value("personal/showStatusBar", true).toBool();
mainWindowGeometry = settings->value("interface/main_window_geometry").toByteArray();
tokenDialogGeometry = settings->value("interface/token_dialog_geometry").toByteArray();
@ -589,6 +590,13 @@ void SettingsCache::setPicDownload(QT_STATE_CHANGED_T _picDownload)
emit picDownloadChanged();
}
void SettingsCache::setShowStatusBar(bool value)
{
showStatusBar = value;
settings->setValue("personal/showStatusBar", showStatusBar);
emit showStatusBarChanged(value);
}
void SettingsCache::setNotificationsEnabled(QT_STATE_CHANGED_T _notificationsEnabled)
{
notificationsEnabled = static_cast<bool>(_notificationsEnabled);