fix: swapped labels on open/save gtkdialog (#20861)
This commit is contained in:
parent
dfdf1b54c6
commit
f0b0614dd7
1 changed files with 2 additions and 2 deletions
|
@ -54,9 +54,9 @@ class FileChooserDialog {
|
|||
if (!settings.button_label.empty())
|
||||
confirm_text = settings.button_label.c_str();
|
||||
else if (action == GTK_FILE_CHOOSER_ACTION_SAVE)
|
||||
confirm_text = gtk_util::kOpenLabel;
|
||||
else if (action == GTK_FILE_CHOOSER_ACTION_OPEN)
|
||||
confirm_text = gtk_util::kSaveLabel;
|
||||
else if (action == GTK_FILE_CHOOSER_ACTION_OPEN)
|
||||
confirm_text = gtk_util::kOpenLabel;
|
||||
|
||||
dialog_ = gtk_file_chooser_dialog_new(
|
||||
settings.title.c_str(), nullptr, action, gtk_util::kCancelLabel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue