mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-06 13:08:24 +00:00
Detail screen, react to local app updates
This commit is contained in:
+2
-2
@@ -79,8 +79,8 @@ class App extends BaseApp with DataModelMixin<App> {
|
||||
if (!installPermission.isGranted) {
|
||||
final newStatus = await Permission.requestInstallPackages.request();
|
||||
if (newStatus.isDenied) {
|
||||
notifier.state =
|
||||
ErrorInstallProgress(Exception('Installation permission denied'));
|
||||
notifier.state = ErrorInstallProgress(Exception('Error'),
|
||||
info: 'Installation permission denied by user');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,8 +38,13 @@ class AppDetailScreen extends HookConsumerWidget {
|
||||
return ref.apps.findOne(model.identifier, remote: true);
|
||||
}));
|
||||
final state = ref.apps.watchOne(model.id!,
|
||||
alsoWatch: (_) =>
|
||||
{_.releases, _.releases.artifacts, _.signer, _.developer});
|
||||
alsoWatch: (_) => {
|
||||
_.localApp,
|
||||
_.releases,
|
||||
_.releases.artifacts,
|
||||
_.signer,
|
||||
_.developer
|
||||
});
|
||||
|
||||
final app = state.model ?? model;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user