Merge pull request #6506 from 21pages/fix_os_password_show

don't show os password when don't have keyboard permission
This commit is contained in:
RustDesk 2023-11-23 19:21:22 +08:00 committed by GitHub
commit 3d368f9aca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,7 @@ List<TTextMenu> toolbarControls(BuildContext context, String id, FFI ffi) {
);
}
// osAccount / osPassword
if (perms['keyboard'] != false) {
v.add(
TTextMenu(
child: Row(children: [
@ -114,6 +115,7 @@ List<TTextMenu> toolbarControls(BuildContext context, String id, FFI ffi) {
: handleOsPasswordAction(sessionId, ffi.dialogManager),
),
);
}
// paste
if (isMobile && perms['keyboard'] != false && perms['clipboard'] != false) {
v.add(TTextMenu(