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

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(