Fix DirectoryOption set filename

This properly updates the display if the preference changes.
Even with FILE_CHOOSER_ACTION_SELECT_FOLDER the API is
is get/set_filename -- set_current_folder() sets the parent folder.
This commit is contained in:
Robin Gareus 2022-02-01 15:45:07 +01:00
parent c17fbd5abc
commit 34c8307a38
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 5 additions and 2 deletions

View file

@ -656,6 +656,7 @@ private:
sigc::slot<std::string> _get; ///< slot to get the configuration variable's value
sigc::slot<bool, std::string> _set; ///< slot to set the configuration variable's value
Gtk::FileChooserButton _file_chooser;
sigc::connection _changed_connection;
};
/** Class to represent a single page in an OptionEditor's notebook.