1. switch sides not check 2fa
2. let self.authorized=true ahead of return, call try_start_cm when 2fa confirmed for updating authorized state
3. flutter 2fa dialog button color

port forward check and sciter will be later on

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2024-01-21 21:53:29 +08:00
committed by GitHub
parent 5770aeee26
commit 48102e9c53
2 changed files with 17 additions and 8 deletions

View File

@@ -1851,11 +1851,11 @@ void enter2FaDialog(
title: Text(translate('enter-2fa-title')),
content: codeField,
actions: [
dialogButton(
'Cancel',
onPressed: cancel,
isOutline: true,
),
dialogButton('Cancel',
onPressed: cancel,
isOutline: true,
style: TextStyle(
color: Theme.of(context).textTheme.bodyMedium?.color)),
Obx(() => dialogButton(
'OK',
onPressed: submitReady.isTrue ? submit : null,