mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
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:
1 parent
361ea4c824
commit
a0007d19e9
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user