mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
Merge 2228dec8ac
into 4a72267d41
This commit is contained in:
commit
da79901639
@ -20,7 +20,9 @@ class HomeView extends StatelessWidget {
|
||||
viewModelBuilder: () => locator<HomeViewModel>(),
|
||||
builder: (context, model, child) => Scaffold(
|
||||
body: RefreshIndicator(
|
||||
onRefresh: () => model.forceRefresh(context),
|
||||
edgeOffset: 110.0,
|
||||
displacement: 10.0,
|
||||
onRefresh: () async => await model.forceRefresh(context),
|
||||
child: CustomScrollView(
|
||||
slivers: <Widget>[
|
||||
CustomSliverAppBar(
|
||||
|
@ -492,8 +492,8 @@ class HomeViewModel extends BaseViewModel {
|
||||
}
|
||||
|
||||
Future<void> forceRefresh(BuildContext context) async {
|
||||
_managerAPI.clearAllData();
|
||||
await _managerAPI.clearAllData();
|
||||
await initialize(context);
|
||||
_toast.showBottom(t.homeView.refreshSuccess);
|
||||
initialize(context);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user