浏览代码

Merge pull request #16895 from Noshyaar/bmk

Fix get_drive (bookmarks) in linux not working
Rémi Verschelde 7 年之前
父节点
当前提交
a5476f8562
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/unix/dir_access_unix.cpp

+ 1 - 1
drivers/unix/dir_access_unix.cpp

@@ -244,7 +244,7 @@ static void _get_drives(List<String> *list) {
 				// Parse only file:// links
 				if (strncmp(string, "file://", 7) == 0) {
 					// Strip any unwanted edges on the strings and push_back if it's not a duplicate
-					String fpath = String(string + 7).strip_edges();
+					String fpath = String(string + 7).strip_edges().split_spaces()[0].percent_decode();
 					if (!list->find(fpath)) {
 						list->push_back(fpath);
 					}