We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf33623 commit 11a107dCopy full SHA for 11a107d
lib/ui/system/update_dialog.dart
@@ -100,7 +100,8 @@ class _UpdateDialogState extends State<UpdateDialog> {
100
}
101
102
void updateApp(BuildContext context) async {
103
- final state = StoreProvider.of<AppState>(context).state;
+ final store = StoreProvider.of<AppState>(context);
104
+ final state = store.state;
105
passwordCallback(
106
alwaysRequire: true,
107
context: context,
@@ -119,6 +120,11 @@ class _UpdateDialogState extends State<UpdateDialog> {
119
120
});
121
if (kIsWeb) {
122
WebUtils.reloadBrowser();
123
+ } else {
124
+ store.dispatch(RefreshData(
125
+ clearData: true,
126
+ includeStatic: true,
127
+ ));
128
129
}).catchError((dynamic error) {
130
showErrorDialog(context: context, message: '$error');
0 commit comments