Skip to content

Commit

Permalink
fix: task directory open (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie authored Aug 14, 2024
1 parent fb1c2cb commit e3ccecb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ui/flutter/lib/app/modules/task/views/task_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,7 @@ extension TaskEnhance on Task {
}

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 {
Expand Down

0 comments on commit e3ccecb

Please sign in to comment.