not show paste menu when mobile control mobile (#8204)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages 2024-05-29 20:38:56 +08:00 committed by GitHub
parent 48e8a25f6e
commit 74c24caae9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,7 +115,10 @@ List<TTextMenu> toolbarControls(BuildContext context, String id, FFI ffi) {
);
}
// paste
if (isMobile && perms['keyboard'] != false && perms['clipboard'] != false) {
if (isMobile &&
pi.platform != kPeerPlatformAndroid &&
perms['keyboard'] != false &&
perms['clipboard'] != false) {
v.add(TTextMenu(
child: Text(translate('Paste')),
onPressed: () async {