Skip to content

Commit

Permalink
Fix Gtk file chooser type when saving.
Browse files Browse the repository at this point in the history
See #387. This is not a fix, but it'll do for now.
  • Loading branch information
tom-seddon committed Nov 17, 2024
1 parent ec8768f commit 29434a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/b2/native_ui_gtk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ std::string OpenFileDialogGTK(const std::vector<OpenFileDialog::Filter> &filters

std::string SaveFileDialogGTK(const std::vector<OpenFileDialog::Filter> &filters,
const std::string &default_path) {
GtkWidget *gdialog = CreateFileDialog("Open File",
GTK_FILE_CHOOSER_ACTION_OPEN);
GtkWidget *gdialog = CreateFileDialog("Save File",
GTK_FILE_CHOOSER_ACTION_SAVE);

AddFilters(gdialog, filters);
SetDefaultPath(gdialog, default_path);
Expand Down

0 comments on commit 29434a2

Please sign in to comment.