Skip to content

Commit 11a107d

Browse files
committed
Refresh data after update
1 parent bf33623 commit 11a107d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/ui/system/update_dialog.dart

+7-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ class _UpdateDialogState extends State<UpdateDialog> {
100100
}
101101

102102
void updateApp(BuildContext context) async {
103-
final state = StoreProvider.of<AppState>(context).state;
103+
final store = StoreProvider.of<AppState>(context);
104+
final state = store.state;
104105
passwordCallback(
105106
alwaysRequire: true,
106107
context: context,
@@ -119,6 +120,11 @@ class _UpdateDialogState extends State<UpdateDialog> {
119120
});
120121
if (kIsWeb) {
121122
WebUtils.reloadBrowser();
123+
} else {
124+
store.dispatch(RefreshData(
125+
clearData: true,
126+
includeStatic: true,
127+
));
122128
}
123129
}).catchError((dynamic error) {
124130
showErrorDialog(context: context, message: '$error');

0 commit comments

Comments
 (0)