feat: news notifications switch (#2126)

* feat: news notifications switch

* update: text changes

* fix: notifications enabled by default
This commit is contained in:
MrMirDan
2026-01-30 06:19:50 +02:00
committed by GitHub
parent ea5242e29b
commit f316f0e25a
6 changed files with 46 additions and 2 deletions

View File

@@ -308,6 +308,15 @@ void SettingsController::toggleStartMinimized(bool enable)
emit startMinimizedChanged();
}
bool SettingsController::isNewsNotificationsEnabled()
{
return m_settings->isNewsNotifications();
}
void SettingsController::toggleNewsNotificationsEnabled(bool enable)
{
m_settings->setNewsNotifications(enable);
}
bool SettingsController::isScreenshotsEnabled()
{
return m_settings->isScreenshotsEnabled();