fix: swapped labels on open/save gtkdialog (#20882)

This commit is contained in:
trop[bot]
2019-10-31 08:42:35 -07:00
committed by Shelley Vohr
parent 25b3ee29cf
commit 1926169c91

View File

@@ -51,9 +51,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(), NULL, action, gtk_util::kCancelLabel,