From f8f70fe82883e49201fa058cad550f490fd26e23 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Thu, 2 Jul 2020 04:06:20 +0300 Subject: [PATCH] Fix missing SessionController capture --- Telegram/SourceFiles/kotato/settings_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();