Skip to content

Commit 8160ffe

Browse files
committed
11565: Change title of 'Reset Preferences' and 'Revert to Factory Settings' confirmation dialogs
1 parent 3e88ab9 commit 8160ffe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/appshell/internal/applicationactioncontroller.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ void ApplicationActionController::revertToFactorySettings()
333333
IInteractive::Result result = interactive()->warning(title, question,
334334
{ cancelBtn,
335335
IInteractive::ButtonData(revertBtn, muse::trc("appshell", "Revert")) },
336-
cancelBtn.btn);
336+
cancelBtn.btn, { muse::IInteractive::Option::WithIcon },
337+
muse::trc("appshell", "Revert to factory settings"));
337338

338339
if (result.standardButton() == IInteractive::Button::Cancel) {
339340
return;

src/appshell/view/preferences/preferencesmodel.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ bool PreferencesModel::askForConfirmationOfPreferencesReset()
218218
muse::IInteractive::ButtonData resetBtn = interactive()->buttonData(muse::IInteractive::Button::Reset);
219219
cancelBtn.accent = true;
220220

221-
muse::IInteractive::Result result = interactive()->warning(title, question, { cancelBtn, resetBtn }, cancelBtn.btn);
221+
muse::IInteractive::Result result = interactive()->warning(title, question, { cancelBtn, resetBtn }, cancelBtn.btn,
222+
{ muse::IInteractive::Option::WithIcon },
223+
muse::trc("appshell", "Reset preferences"));
222224
return result.standardButton() == muse::IInteractive::Button::Reset;
223225
}
224226

0 commit comments

Comments
 (0)