mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 15:26:17 +00:00
fix(app): tag view refreshes type icons after renaming or removing a tag
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ad03383933
commit
1a8bca5deb
1 file changed
+3
@@ -26,6 +26,8 @@ class TagView extends StatelessWidget {
|
||||
() => app.backend.renameTag(name, next),
|
||||
report: false,
|
||||
);
|
||||
// A type of that name moves its emoji to the new name.
|
||||
await app.loadTypeIcons();
|
||||
app.replaceRoute(TagRoute(next));
|
||||
} catch (e) {
|
||||
messenger.showSnackBar(SnackBar(content: Text(errorText(e))));
|
||||
@@ -59,6 +61,7 @@ class TagView extends StatelessWidget {
|
||||
if (ok != true) return;
|
||||
try {
|
||||
await app.queue.run(() => app.backend.removeTag(name), report: false);
|
||||
await app.loadTypeIcons();
|
||||
app.reload();
|
||||
} catch (e) {
|
||||
messenger.showSnackBar(SnackBar(content: Text(errorText(e))));
|
||||
|
||||
Reference in new issue
Block a user