fix: opdate InstallAlertDialog to conditionally display "Always trust" switch based on user sign-in status

This commit is contained in:
Henrique Velloso
2026-02-12 16:51:51 -03:00
parent 099aecb7ac
commit 6fc82e0f45
+3
View File
@@ -84,6 +84,8 @@ class InstallAlertDialog extends HookConsumerWidget {
), ),
], ],
), ),
// Only show "Always trust" when signed in (requires signer to persist)
if (profile != null) ...[
const Gap(14), const Gap(14),
Row( Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
@@ -117,6 +119,7 @@ class InstallAlertDialog extends HookConsumerWidget {
), ),
], ],
], ],
],
), ),
actions: [ actions: [
TextButton( TextButton(