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:
dasemuandClaude Opus 5.5 committed 2026-10-26 06:55:22 +01:00
1 parent ad03383933
commit 1a8bca5deb
1 file changed
+3
+3
View File
@@ -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))));