mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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() {
|
void FiltersMenu::setupMainMenuIcon() {
|
||||||
OtherAccountsUnreadState(
|
OtherAccountsUnreadState(
|
||||||
) | rpl::start_with_next([=](const OthersUnreadState &state) {
|
) | rpl::start_with_next([=](const OthersUnreadState &state) {
|
||||||
const auto icon = !state.count
|
auto icon = !state.count
|
||||||
? nullptr
|
? nullptr
|
||||||
: !state.allMuted
|
: !state.allMuted
|
||||||
? &st::windowFiltersMainMenuUnread
|
? &st::windowFiltersMainMenuUnread
|
||||||
: &st::windowFiltersMainMenuUnreadMuted;
|
: &st::windowFiltersMainMenuUnreadMuted;
|
||||||
|
|
||||||
|
const auto settings = &AyuSettings::getInstance();
|
||||||
|
if (settings->hideNotificationCounters) {
|
||||||
|
icon = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
_menu.setIconOverride(icon, icon);
|
_menu.setIconOverride(icon, icon);
|
||||||
}, _outer.lifetime());
|
}, _outer.lifetime());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue