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:
@@ -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(),
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user