main page: fix dulplicated account badge

This commit is contained in:
Pacalini
2024-10-31 16:10:14 +08:00
parent a508d85ce6
commit 82478fa247
3 changed files with 4 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ class AccountsPage extends StatelessWidget {
),
);
element.saveData();
ComicSource.notifyListeners();
logic.update();
},
);
@@ -124,6 +125,7 @@ class AccountsPage extends StatelessWidget {
element.data["account"] = null;
element.account?.logout();
element.saveData();
ComicSource.notifyListeners();
logic.update();
},
trailing: const Icon(Icons.logout),