mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
feat: toast for disabled updates.
This commit is contained in:
parent
63b2d8e0bd
commit
84a788fd9e
@ -26,7 +26,8 @@
|
||||
"installingMessage": "Installing update...",
|
||||
"errorDownloadMessage": "Unable to download update",
|
||||
"errorInstallMessage": "Unable to install update",
|
||||
"noConnection": "No internet connection"
|
||||
"noConnection": "No internet connection",
|
||||
"updatesDisabled": "Updating a patched app is currently disabled. Repatch the app again."
|
||||
},
|
||||
"applicationItem": {
|
||||
"patchButton": "Patch",
|
||||
|
@ -143,6 +143,10 @@ class HomeViewModel extends BaseViewModel {
|
||||
}
|
||||
}
|
||||
|
||||
void updatesAreDisabled() {
|
||||
_toast.show('homeView.updatesDisabled');
|
||||
}
|
||||
|
||||
Future<void> showUpdateConfirmationDialog(BuildContext parentContext) async {
|
||||
return showDialog(
|
||||
context: parentContext,
|
||||
|
@ -51,11 +51,8 @@ class AvailableUpdatesCard extends StatelessWidget {
|
||||
changelog: app.changelog,
|
||||
isUpdatableApp: true,
|
||||
//TODO: Find a better way to do update functionality
|
||||
onPressed: () {}
|
||||
// () =>
|
||||
// locator<HomeViewModel>().navigateToPatcher(
|
||||
// app,
|
||||
// ),
|
||||
onPressed: () =>
|
||||
locator<HomeViewModel>().updatesAreDisabled(),
|
||||
))
|
||||
.toList(),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user