mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
X11: Fix drag and drop from non-latin paths
Fixes #25826. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
This commit is contained in:
parent
f2003b1a7e
commit
1e266d874d
@ -2355,7 +2355,7 @@ void OS_X11::process_xevents() {
|
||||
|
||||
Vector<String> files = String((char *)p.data).split("\n", false);
|
||||
for (int i = 0; i < files.size(); i++) {
|
||||
files.write[i] = files[i].replace("file://", "").replace("%20", " ").strip_escapes();
|
||||
files.write[i] = files[i].replace("file://", "").http_unescape().strip_escapes();
|
||||
}
|
||||
main_loop->drop_files(files);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user