소스 검색

Fix get_drive (bookmarks) in linux not working

Poommetee Ketson 7 년 전
부모
커밋
7e5b10b7d3
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);
 					}