static constexpr char crashReporterC[] = "crashReporter";
static constexpr char optionalServerNotificationsC[] = "optionalServerNotifications";
static constexpr char showCallNotificationsC[] = "showCallNotifications";
+static constexpr char showChatNotificationsC[] = "showChatNotifications";
static constexpr char showInExplorerNavigationPaneC[] = "showInExplorerNavigationPane";
static constexpr char skipUpdateCheckC[] = "skipUpdateCheck";
static constexpr char autoUpdateCheckC[] = "autoUpdateCheck";
return settings.value(QLatin1String(optionalServerNotificationsC), true).toBool();
}
+bool ConfigFile::showChatNotifications() const
+{
+ const QSettings settings(configFile(), QSettings::IniFormat);
+ return settings.value(QLatin1String(showChatNotificationsC), true).toBool() && optionalServerNotifications();
+}
+
+void ConfigFile::setShowChatNotifications(const bool show)
+{
+ QSettings settings(configFile(), QSettings::IniFormat);
+ settings.setValue(QLatin1String(showChatNotificationsC), show);
+ settings.sync();
+}
+
bool ConfigFile::showCallNotifications() const
{
const QSettings settings(configFile(), QSettings::IniFormat);
[[nodiscard]] bool optionalServerNotifications() const;
void setOptionalServerNotifications(bool show);
+ [[nodiscard]] bool showChatNotifications() const;
+ void setShowChatNotifications(bool show);
+
[[nodiscard]] bool showCallNotifications() const;
- void setShowCallNotifications(bool show);
+ void setShowCallNotifications(const bool show);
[[nodiscard]] bool showInExplorerNavigationPane() const;
void setShowInExplorerNavigationPane(bool show);