mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
fix: hide Streamer mode on Linux
Until someone implements it.
This commit is contained in:
parent
040794586b
commit
2aef563374
1 changed files with 4 additions and 0 deletions
|
@ -942,6 +942,7 @@ void Ayu::SetupDrawerElements(not_null<Ui::VerticalLayout *> container)
|
||||||
AyuSettings::save();
|
AyuSettings::save();
|
||||||
}, container->lifetime());
|
}, container->lifetime());
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
AddButtonWithIcon(
|
AddButtonWithIcon(
|
||||||
container,
|
container,
|
||||||
tr::ayu_StreamerModeToggle(),
|
tr::ayu_StreamerModeToggle(),
|
||||||
|
@ -960,6 +961,7 @@ void Ayu::SetupDrawerElements(not_null<Ui::VerticalLayout *> container)
|
||||||
settings->set_showStreamerToggleInDrawer(enabled);
|
settings->set_showStreamerToggleInDrawer(enabled);
|
||||||
AyuSettings::save();
|
AyuSettings::save();
|
||||||
}, container->lifetime());
|
}, container->lifetime());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ayu::SetupTrayElements(not_null<Ui::VerticalLayout *> container)
|
void Ayu::SetupTrayElements(not_null<Ui::VerticalLayout *> container)
|
||||||
|
@ -987,6 +989,7 @@ void Ayu::SetupTrayElements(not_null<Ui::VerticalLayout *> container)
|
||||||
AyuSettings::save();
|
AyuSettings::save();
|
||||||
}, container->lifetime());
|
}, container->lifetime());
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
AddButtonWithIcon(
|
AddButtonWithIcon(
|
||||||
container,
|
container,
|
||||||
tr::ayu_EnableStreamerModeTray(),
|
tr::ayu_EnableStreamerModeTray(),
|
||||||
|
@ -1004,6 +1007,7 @@ void Ayu::SetupTrayElements(not_null<Ui::VerticalLayout *> container)
|
||||||
settings->set_showStreamerToggleInTray(enabled);
|
settings->set_showStreamerToggleInTray(enabled);
|
||||||
AyuSettings::save();
|
AyuSettings::save();
|
||||||
}, container->lifetime());
|
}, container->lifetime());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ayu::SetupShowPeerId(not_null<Ui::VerticalLayout *> container,
|
void Ayu::SetupShowPeerId(not_null<Ui::VerticalLayout *> container,
|
||||||
|
|
Loading…
Add table
Reference in a new issue