Settings: Ask about restoring a page's defaults in a popup, not a full screen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-11-06 23:07:48 +01:00
1 parent 361ea4c824
commit a0007d19e9
1 file changed
+1 -1
+1 -1
View File
@@ -241,7 +241,7 @@ static std::function<void(UI::EventParams &)> RestoreDefaultsHandler(const Setti
SettingsPageHost *host = page.Host();
return [host, settings](UI::EventParams &) {
std::string_view message = T(I18NCat::DIALOG, "RestorePageDefaults", "Restore the settings on this page to their defaults?");
host->PageScreenManager()->push(new PromptScreen(host->PageGamePath(), message, T(I18NCat::DIALOG, "Reset"), T(I18NCat::DIALOG, "Cancel"), [host, settings](bool yes) {
host->PageScreenManager()->push(new UI::MessagePopupScreen(T(I18NCat::DIALOG, "Restore defaults"), message, T(I18NCat::DIALOG, "Reset"), T(I18NCat::DIALOG, "Cancel"), [host, settings](bool yes) {
if (!yes) {
return;
}