mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 23:36:20 +00:00
fix(app): leave tabs that open a deleted page by title, so it is not recreated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3d754a83e6
commit
a6d566ff6f
4 files changed
+22
-4
No files matched your search
@@ -117,7 +117,7 @@ class _AllPagesViewState extends State<AllPagesView> {
|
||||
if (_chosen.isEmpty) _selecting = false;
|
||||
});
|
||||
}
|
||||
app.pagesDeleted(ids);
|
||||
app.pagesDeleted(ids, titles: [for (final p in targets) p.title]);
|
||||
messenger.showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
|
||||
@@ -741,7 +741,7 @@ class PageMenu extends StatelessWidget {
|
||||
return;
|
||||
}
|
||||
// Tabs showing the page step back (or fall back to Journals); recents drop it.
|
||||
app.pagesDeleted([page.id]);
|
||||
app.pagesDeleted([page.id], titles: [page.title]);
|
||||
messenger.showSnackBar(SnackBar(content: Text('Deleted "${page.title}"')));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user