mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-05-04 18:59:07 -05:00
fix: reload app on account switch
This commit is contained in:
@@ -237,7 +237,10 @@ class AuthModel with ChangeNotifier {
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void setActiveAccountIndex(int index) {
|
||||
var rootKey = UniqueKey();
|
||||
void setActiveAccountAndReload(int index) {
|
||||
// https://stackoverflow.com/a/50116077
|
||||
rootKey = UniqueKey();
|
||||
activeAccountIndex = index;
|
||||
_gqlClient = null;
|
||||
notifyListeners();
|
||||
|
||||
Reference in New Issue
Block a user