2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Replaced Ui::InformBox and Ui::ConfirmBox with GenericBox.

This commit is contained in:
23rd
2022-02-27 11:23:20 +03:00
parent d5a44a2ba4
commit 5718789d53
89 changed files with 796 additions and 733 deletions

View File

@@ -1406,10 +1406,11 @@ void ToggleNightModeWithConfirmation(
toggle();
close();
};
window->show(Box<Ui::ConfirmBox>(
tr::lng_settings_auto_night_warning(tr::now),
tr::lng_settings_auto_night_disable(tr::now),
disableAndToggle));
window->show(Ui::MakeConfirmBox({
.text = tr::lng_settings_auto_night_warning(),
.confirmed = disableAndToggle,
.confirmText = tr::lng_settings_auto_night_disable(),
}));
}
}