fix: can not open url encode torrent file path (#945)

This commit is contained in:
Levi authored and GitHub committed 2025-02-27 00:00:25 +08:00
1 parent 9c5aebaf36
commit 046a3ac9f9
1 file changed
+2 -1
@@ -359,7 +359,8 @@ class AppController extends GetxController with WindowListener, TrayListener {
uri.scheme == "https") {
path = uri.toString();
} else if (uri.scheme == "file") {
path = Util.isWindows() ? uri.path.substring(1) : uri.path;
path =
Util.isWindows() ? Uri.decodeFull(uri.path.substring(1)) : uri.path;
} else {
path = (await toFile(uri.toString())).path;
}