summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorAnton Karmanov <bergentroll@insiberia.net>2018-05-09 01:53:40 +0500
committermujx <mujx@users.noreply.github.com>2018-05-08 23:53:40 +0300
commit17896b1c82200aec05a7cd99b9694fb228ad04f0 (patch)
tree3d453b85949eaa1450c5b4e5f151b909df035efb /include
parentHide SnackBar initially & guard against access of an empty list (diff)
downloadnheko-17896b1c82200aec05a7cd99b9694fb228ad04f0.tar.xz
Start in tray (#319)
Diffstat (limited to 'include')
-rw-r--r--include/UserSettingsPage.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/UserSettingsPage.h b/include/UserSettingsPage.h

index a58020ce..177f1921 100644 --- a/include/UserSettingsPage.h +++ b/include/UserSettingsPage.h
@@ -46,6 +46,12 @@ public: save(); }; + void setStartInTray(bool state) + { + isStartInTrayEnabled_ = state; + save(); + }; + void setRoomOrdering(bool state) { isOrderingEnabled_ = state; @@ -75,6 +81,7 @@ public: QString theme() const { return !theme_.isEmpty() ? theme_ : "light"; } bool isTrayEnabled() const { return isTrayEnabled_; } + bool isStartInTrayEnabled() const { return isStartInTrayEnabled_; } bool isOrderingEnabled() const { return isOrderingEnabled_; } bool isGroupViewEnabled() const { return isGroupViewEnabled_; } bool isTypingNotificationsEnabled() const { return isTypingNotificationsEnabled_; } @@ -86,6 +93,7 @@ signals: private: QString theme_; bool isTrayEnabled_; + bool isStartInTrayEnabled_; bool isOrderingEnabled_; bool isGroupViewEnabled_; bool isTypingNotificationsEnabled_; @@ -128,6 +136,7 @@ private: QSharedPointer<UserSettings> settings_; Toggle *trayToggle_; + Toggle *startInTrayToggle_; Toggle *roomOrderToggle_; Toggle *groupViewToggle_; Toggle *typingNotifications_;