mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
feat: add toggles to customization
This commit is contained in:
@@ -100,6 +100,8 @@ void Tray::rebuildMenu() {
|
||||
[=] { toggleSoundNotifications(); });
|
||||
}
|
||||
|
||||
auto settings = &AyuSettings::getInstance();
|
||||
|
||||
auto turnGhostModeText = _textUpdates.events(
|
||||
) | rpl::map([=]
|
||||
{
|
||||
@@ -111,7 +113,6 @@ void Tray::rebuildMenu() {
|
||||
});
|
||||
_tray.addAction(std::move(turnGhostModeText), [=]
|
||||
{
|
||||
auto settings = &AyuSettings::getInstance();
|
||||
bool ghostMode = AyuSettings::get_ghostModeEnabled();
|
||||
|
||||
settings->set_ghostModeEnabled(!ghostMode);
|
||||
@@ -119,7 +120,7 @@ void Tray::rebuildMenu() {
|
||||
AyuSettings::save();
|
||||
});
|
||||
|
||||
if (StreamerMode.value()) {
|
||||
if (settings->showStreamerToggleInTray) {
|
||||
auto turnStreamerModeText = _textUpdates.events(
|
||||
) | rpl::map([=] {
|
||||
bool streamerModeEnabled = AyuFeatures::StreamerMode::isEnabled();
|
||||
|
||||
Reference in New Issue
Block a user