From 319d11fa69c6f6690975788c74cd56c84f4ee7d4 Mon Sep 17 00:00:00 2001 From: liwei Date: Wed, 26 Feb 2025 15:27:29 +0800 Subject: [PATCH] fix: can not open url encode torrent file path --- ui/flutter/lib/app/modules/app/controllers/app_controller.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/flutter/lib/app/modules/app/controllers/app_controller.dart b/ui/flutter/lib/app/modules/app/controllers/app_controller.dart index aad26efeb..b97cd33a5 100644 --- a/ui/flutter/lib/app/modules/app/controllers/app_controller.dart +++ b/ui/flutter/lib/app/modules/app/controllers/app_controller.dart @@ -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; }