diff --git a/Telegram/SourceFiles/info/info_wrap_widget.cpp b/Telegram/SourceFiles/info/info_wrap_widget.cpp index ab1d7dfe2..bc063e28d 100644 --- a/Telegram/SourceFiles/info/info_wrap_widget.cpp +++ b/Telegram/SourceFiles/info/info_wrap_widget.cpp @@ -410,7 +410,8 @@ void WrapWidget::createTopBar() { // addProfileNotificationsButton(); } else if (section.type() == Section::Type::Settings && (section.settingsType() == Section::SettingsType::Main - || section.settingsType() == Section::SettingsType::Chat)) { + || section.settingsType() == Section::SettingsType::Chat + || section.settingsType() == Section::SettingsType::Kotato)) { addTopBarMenuButton(); } else if (section.type() == Section::Type::Settings && section.settingsType() == Section::SettingsType::Information) { diff --git a/Telegram/SourceFiles/settings/settings_common.cpp b/Telegram/SourceFiles/settings/settings_common.cpp index 3fd4bc7cb..b5a66d55e 100644 --- a/Telegram/SourceFiles/settings/settings_common.cpp +++ b/Telegram/SourceFiles/settings/settings_common.cpp @@ -201,7 +201,7 @@ void FillMenu( [=] { window->show(Box(Window::Theme::CreateBox, window)); }); } else { const auto customSettingsFile = cWorkingDir() + "tdata/kotato-settings-custom.json"; - if (!controller->session().supportMode()) { + if (type != Type::Kotato && !controller->session().supportMode()) { addAction( tr::lng_settings_information(tr::now), [=] { showOther(Type::Information); }); @@ -212,9 +212,11 @@ void FillMenu( addAction( tr::ktg_settings_restart(tr::now), [=] { App::restart(); }); - addAction( - tr::lng_settings_logout(tr::now), - [=] { window->widget()->onLogout(); }); + if (type != Type::Kotato) { + addAction( + tr::lng_settings_logout(tr::now), + [=] { window->widget()->onLogout(); }); + } } }