13
0

Consistent mixer-scene query dialog (use Yes/No question)

This commit is contained in:
Robin Gareus 2022-07-07 17:07:46 +02:00
parent 6631273356
commit baeb5cbafd
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -3974,11 +3974,10 @@ Mixer_UI::recall_mixer_scene (size_t n, bool interactive)
if (interactive && 0 == Config->instant_xml (X_("no-scene-recall-warning"))) { if (interactive && 0 == Config->instant_xml (X_("no-scene-recall-warning"))) {
ArdourMessageDialog msg (string_compose (_("Recall mixer scene \"%1\"?\n" ArdourMessageDialog msg (string_compose (_("Recall mixer scene \"%1\"?\n"
"This will overwrite your mixer settings!\n" "This will overwrite your mixer settings!\n"
"This operation cannot be undone."), ms->name())); "This operation cannot be undone."), ms->name()),
false, MESSAGE_QUESTION, BUTTONS_YES_NO);
msg.add_button (_("Cancel"), Gtk::RESPONSE_NO); msg.set_default_response (RESPONSE_YES);
msg.set_default_response (RESPONSE_OK);
VBox* vbox = msg.get_vbox(); VBox* vbox = msg.get_vbox();
HBox hbox; HBox hbox;
@ -3989,7 +3988,7 @@ Mixer_UI::recall_mixer_scene (size_t n, bool interactive)
vbox->show(); vbox->show();
hbox.show (); hbox.show ();
if (msg.run () != Gtk::RESPONSE_OK) { if (msg.run () != RESPONSE_YES) {
return; return;
} }
@ -4017,11 +4016,10 @@ Mixer_UI::clear_mixer_scene (size_t n, bool interactive)
// XXX this is really bad UX. Ardour should not have any "don't show this again" options. // XXX this is really bad UX. Ardour should not have any "don't show this again" options.
if (interactive && 0 == Config->instant_xml (X_("no-scene-clear-warning"))) { if (interactive && 0 == Config->instant_xml (X_("no-scene-clear-warning"))) {
ArdourMessageDialog msg (string_compose (_("Clear mixer scene \"%1\"?\n" ArdourMessageDialog msg (string_compose (_("Clear mixer scene \"%1\"?\n"
"This operation cannot be undone."), ms->name())); "This operation cannot be undone."), ms->name()),
false, MESSAGE_QUESTION, BUTTONS_YES_NO);
msg.add_button (_("Cancel"), Gtk::RESPONSE_NO); msg.set_default_response (RESPONSE_YES);
msg.set_default_response (RESPONSE_OK);
VBox* vbox = msg.get_vbox(); VBox* vbox = msg.get_vbox();
HBox hbox; HBox hbox;
@ -4032,7 +4030,7 @@ Mixer_UI::clear_mixer_scene (size_t n, bool interactive)
vbox->show(); vbox->show();
hbox.show (); hbox.show ();
if (msg.run () != Gtk::RESPONSE_OK) { if (msg.run () != RESPONSE_YES) {
return; return;
} }