fix: task directory open (#647)

This commit is contained in:
Levi authored and GitHub committed 2024-08-14 21:21:41 +08:00
1 parent fb1c2cb060
commit e3ccecbd9c
1 file changed
-5
@@ -151,13 +151,8 @@ extension TaskEnhance on Task {
} }
String get explorerUrl { String get explorerUrl {
if (isFolder) {
return path.join(Util.safeDir(meta.opts.path),
Util.safeDir(meta.res!.files[0].path), showName);
} else {
return path.join(Util.safeDir(meta.opts.path), Util.safeDir(showName)); return path.join(Util.safeDir(meta.opts.path), Util.safeDir(showName));
} }
}
Future<void> explorer() async { Future<void> explorer() async {
if (Util.isDesktop()) { if (Util.isDesktop()) {