mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix saving filename compatibility with xdg-desktop-portal-gtk
This commit is contained in:
@@ -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]));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user