mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix saving filename compatibility with xdg-desktop-portal-gtk
This commit is contained in:
parent
cc736158a6
commit
2c6a9614b2
1 changed files with 3 additions and 0 deletions
|
@ -288,6 +288,9 @@ void XDPFileDialog::openPortal() {
|
||||||
if (!_selectedFiles.empty()) {
|
if (!_selectedFiles.empty()) {
|
||||||
options["current_file"] = Glib::Variant<std::string>::create(
|
options["current_file"] = Glib::Variant<std::string>::create(
|
||||||
_selectedFiles[0] + '\0');
|
_selectedFiles[0] + '\0');
|
||||||
|
|
||||||
|
options["current_name"] = Glib::Variant<Glib::ustring>::create(
|
||||||
|
Glib::path_get_basename(_selectedFiles[0]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue