2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Removed AddButton and CreateButton without icon from Settings.

This commit is contained in:
23rd
2023-11-14 23:59:21 +03:00
parent f6cb9072d2
commit f629bf76ff
40 changed files with 173 additions and 171 deletions

View File

@@ -292,11 +292,11 @@ void Calls::setupContent() {
Ui::AddSubsectionTitle(content, tr::lng_settings_call_section_other());
const auto api = &_controller->session().api();
AddButton(
content->add(object_ptr<Ui::SettingsButton>(
content,
tr::lng_settings_call_accept_calls(),
st::settingsButtonNoIcon
)->toggleOn(
))->toggleOn(
api->authorizations().callsDisabledHereValue(
) | rpl::map(!rpl::mappers::_1)
)->toggledChanges(
@@ -306,11 +306,11 @@ void Calls::setupContent() {
api->authorizations().toggleCallsDisabledHere(!value);
}, content->lifetime());
AddButton(
content->add(object_ptr<Ui::SettingsButton>(
content,
tr::lng_settings_call_open_system_prefs(),
st::settingsButtonNoIcon
)->addClickHandler([=] {
))->addClickHandler([=] {
const auto opened = Platform::OpenSystemSettings(
Platform::SystemSettingsType::Audio);
if (!opened) {