mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-09 10:00:27 +00:00
fix(flutter): align notification file actions with task cards
This commit is contained in:
1 parent
014221a1a7
commit
7496331ffd
2 files changed
+46
-4
No files matched your search
@@ -252,10 +252,7 @@ class AppNotificationController extends AsyncNotifier<AppNotificationState> {
|
||||
await bringWindowToFront();
|
||||
return;
|
||||
}
|
||||
if (!await File(spec.path).exists()) {
|
||||
logger.w('notification target no longer exists: ${spec.path}');
|
||||
return;
|
||||
}
|
||||
// Use the task card's file operations, including reveal's parent fallback.
|
||||
switch (spec.id) {
|
||||
case _openFileAction:
|
||||
if (!await openTaskFile(spec.path)) {
|
||||
|
||||
Reference in new issue
Block a user