diff options
author | Emi Simpson <emi@alchemi.dev> | 2020-03-15 11:19:22 -0400 |
---|---|---|
committer | Emi Simpson <emi@alchemi.dev> | 2020-03-15 11:19:22 -0400 |
commit | b6bd36ac16f3fbc3717385a3c2fe365535206159 (patch) | |
tree | 788dad61898b0c3de367ed7f7606a526f25bce25 /src/UserSettingsPage.h | |
parent | Switched room importance to an enum (diff) | |
download | nheko-b6bd36ac16f3fbc3717385a3c2fe365535206159.tar.xz |
Added toggle in the settings to ignore minor events
Diffstat (limited to '')
-rw-r--r-- | src/UserSettingsPage.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/UserSettingsPage.h b/src/UserSettingsPage.h index a1b7b084..e1c52277 100644 --- a/src/UserSettingsPage.h +++ b/src/UserSettingsPage.h @@ -87,6 +87,12 @@ public: save(); } + void setIgnoreMinorEvents(bool state) + { + ignoreMinorEvents_ = state; + save(); + } + void setDesktopNotifications(bool state) { hasDesktopNotifications_ = state; @@ -106,6 +112,7 @@ public: bool isAvatarCirclesEnabled() const { return avatarCircles_; } bool isMarkdownEnabled() const { return isMarkdownEnabled_; } bool isTypingNotificationsEnabled() const { return isTypingNotificationsEnabled_; } + bool isIgnoreMinorEventsEnabled() const { return ignoreMinorEvents_; } bool isReadReceiptsEnabled() const { return isReadReceiptsEnabled_; } bool hasDesktopNotifications() const { return hasDesktopNotifications_; } double fontSize() const { return baseFontSize_; } @@ -127,6 +134,7 @@ private: bool isGroupViewEnabled_; bool isMarkdownEnabled_; bool isTypingNotificationsEnabled_; + bool ignoreMinorEvents_; bool isReadReceiptsEnabled_; bool hasDesktopNotifications_; bool avatarCircles_; @@ -176,6 +184,7 @@ private: Toggle *startInTrayToggle_; Toggle *groupViewToggle_; Toggle *typingNotifications_; + Toggle *ignoreMinorEvents_; Toggle *readReceipts_; Toggle *markdownEnabled_; Toggle *desktopNotifications_; |