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();
|
// addProfileNotificationsButton();
|
||||||
} else if (section.type() == Section::Type::Settings
|
} else if (section.type() == Section::Type::Settings
|
||||||
&& (section.settingsType() == Section::SettingsType::Main
|
&& (section.settingsType() == Section::SettingsType::Main
|
||||||
|| section.settingsType() == Section::SettingsType::Chat)) {
|
|| section.settingsType() == Section::SettingsType::Chat
|
||||||
|
|| section.settingsType() == Section::SettingsType::Kotato)) {
|
||||||
addTopBarMenuButton();
|
addTopBarMenuButton();
|
||||||
} else if (section.type() == Section::Type::Settings
|
} else if (section.type() == Section::Type::Settings
|
||||||
&& section.settingsType() == Section::SettingsType::Information) {
|
&& section.settingsType() == Section::SettingsType::Information) {
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@ void FillMenu(
|
||||||
[=] { window->show(Box(Window::Theme::CreateBox, window)); });
|
[=] { window->show(Box(Window::Theme::CreateBox, window)); });
|
||||||
} else {
|
} else {
|
||||||
const auto customSettingsFile = cWorkingDir() + "tdata/kotato-settings-custom.json";
|
const auto customSettingsFile = cWorkingDir() + "tdata/kotato-settings-custom.json";
|
||||||
if (!controller->session().supportMode()) {
|
if (type != Type::Kotato && !controller->session().supportMode()) {
|
||||||
addAction(
|
addAction(
|
||||||
tr::lng_settings_information(tr::now),
|
tr::lng_settings_information(tr::now),
|
||||||
[=] { showOther(Type::Information); });
|
[=] { showOther(Type::Information); });
|
||||||
|
|
@ -212,9 +212,11 @@ void FillMenu(
|
||||||
addAction(
|
addAction(
|
||||||
tr::ktg_settings_restart(tr::now),
|
tr::ktg_settings_restart(tr::now),
|
||||||
[=] { App::restart(); });
|
[=] { App::restart(); });
|
||||||
addAction(
|
if (type != Type::Kotato) {
|
||||||
tr::lng_settings_logout(tr::now),
|
addAction(
|
||||||
[=] { window->widget()->onLogout(); });
|
tr::lng_settings_logout(tr::now),
|
||||||
|
[=] { window->widget()->onLogout(); });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue