mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
fix: remove icon override with hideNotificationCounters
This commit is contained in:
parent
8718e0a045
commit
9321f22a9e
1 changed files with 7 additions and 1 deletions
|
@ -164,11 +164,17 @@ void FiltersMenu::setup() {
|
|||
void FiltersMenu::setupMainMenuIcon() {
|
||||
OtherAccountsUnreadState(
|
||||
) | rpl::start_with_next([=](const OthersUnreadState &state) {
|
||||
const auto icon = !state.count
|
||||
auto icon = !state.count
|
||||
? nullptr
|
||||
: !state.allMuted
|
||||
? &st::windowFiltersMainMenuUnread
|
||||
: &st::windowFiltersMainMenuUnreadMuted;
|
||||
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
if (settings->hideNotificationCounters) {
|
||||
icon = nullptr;
|
||||
}
|
||||
|
||||
_menu.setIconOverride(icon, icon);
|
||||
}, _outer.lifetime());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue