Added menu in Kotatogram settings
This commit is contained in:
parent
6bf188fcb1
commit
2fa5915594
2 changed files with 8 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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(); });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue