diff --git a/Telegram/SourceFiles/kotato/settings_menu.cpp b/Telegram/SourceFiles/kotato/settings_menu.cpp index 935fa86f5..2e819bfd2 100644 --- a/Telegram/SourceFiles/kotato/settings_menu.cpp +++ b/Telegram/SourceFiles/kotato/settings_menu.cpp @@ -480,7 +480,7 @@ void SetupKotatoSystem( )->toggledValue( ) | rpl::filter([](bool enabled) { return (enabled != cUseTelegramPanelIcon()); - }) | rpl::start_with_next([](bool enabled) { + }) | rpl::start_with_next([controller](bool enabled) { cSetUseTelegramPanelIcon(enabled); controller->session().data().notifyUnreadBadgeChanged(); ::Kotato::JsonSettings::Write();