mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
fix: hideNotificationCounters
This commit is contained in:
parent
1935a2b144
commit
8bfb7e221b
1 changed files with 7 additions and 1 deletions
|
@ -817,11 +817,17 @@ void Widget::setupMainMenuToggle() {
|
|||
|
||||
Window::OtherAccountsUnreadState(
|
||||
) | rpl::start_with_next([=](const Window::OthersUnreadState &state) {
|
||||
const auto icon = !state.count
|
||||
auto icon = !state.count
|
||||
? nullptr
|
||||
: !state.allMuted
|
||||
? &st::dialogsMenuToggleUnread
|
||||
: &st::dialogsMenuToggleUnreadMuted;
|
||||
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
if (settings->hideNotificationCounters) {
|
||||
icon = nullptr;
|
||||
}
|
||||
|
||||
_mainMenu.toggle->setIconOverride(icon, icon);
|
||||
}, _mainMenu.toggle->lifetime());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue