mirror of
https://github.com/localsend/localsend.git
synced 2026-08-07 07:14:52 +00:00
feat: do not offer verify page if not encrypted
This commit is contained in:
@@ -163,7 +163,7 @@ class _ReceivePageState extends State<ReceivePage> with Refena {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
TextButton.icon(
|
||||
onPressed: () async => await context.push(
|
||||
onPressed: !vm.sender.https ? null : () async => await context.push(
|
||||
() => VerifyPage(
|
||||
fingerprint: CombinedFingerprint.load(context, vm.sender.fingerprint),
|
||||
),
|
||||
|
||||
@@ -145,7 +145,7 @@ class _SendPageState extends State<SendPage> with Refena {
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(top: 8),
|
||||
child: TextButton.icon(
|
||||
onPressed: () async => await context.push(
|
||||
onPressed: !targetDevice.https ? null : () async => await context.push(
|
||||
() => VerifyPage(
|
||||
fingerprint: CombinedFingerprint.load(context, targetDevice.fingerprint),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user