elevation: keyboard permission required and remove foreground filter

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-09-30 19:47:59 +08:00
parent d8e51c6b14
commit 17a56bbf48
41 changed files with 69 additions and 45 deletions

View file

@ -711,6 +711,13 @@ void showWaitUacDialog(
(setState, close, context) => CustomAlertDialog(
title: null,
content: msgboxContent(type, 'Wait', 'wait_accept_uac_tip'),
actions: [
dialogButton(
'OK',
icon: Icon(Icons.done_rounded),
onPressed: close,
),
],
));
}
@ -931,7 +938,7 @@ void showElevationError(SessionID sessionId, String type, String title,
dialogButton('Cancel', onPressed: () {
close();
}, isOutline: true),
dialogButton('Retry', onPressed: submit),
if (text != 'No permission') dialogButton('Retry', onPressed: submit),
],
onSubmit: submit,
onCancel: close,