Fix saving filename compatibility with xdg-desktop-portal-gtk

This commit is contained in:
Ilya Fedin 2021-03-07 09:52:55 +04:00 committed by John Preston
parent cc736158a6
commit 2c6a9614b2
1 changed files with 3 additions and 0 deletions

View File

@ -288,6 +288,9 @@ void XDPFileDialog::openPortal() {
if (!_selectedFiles.empty()) {
options["current_file"] = Glib::Variant<std::string>::create(
_selectedFiles[0] + '\0');
options["current_name"] = Glib::Variant<Glib::ustring>::create(
Glib::path_get_basename(_selectedFiles[0]));
}
}