mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-23 17:09:40 +00:00
Merge pull request #3679 from 21pages/view_mode
handle titlebar menu for view mode
This commit is contained in:
commit
747599df66
1 changed files with 2 additions and 2 deletions
|
|
@ -260,7 +260,7 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
|
|||
),
|
||||
]);
|
||||
|
||||
if (!ffi.canvasModel.cursorEmbedded) {
|
||||
if (!ffi.canvasModel.cursorEmbedded && !ffi.ffiModel.viewOnly) {
|
||||
menu.add(MenuEntryDivider<String>());
|
||||
menu.add(RemoteMenuEntry.showRemoteCursor(
|
||||
key,
|
||||
|
|
@ -269,7 +269,7 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
|
|||
));
|
||||
}
|
||||
|
||||
if (perms['keyboard'] != false) {
|
||||
if (perms['keyboard'] != false && !ffi.ffiModel.viewOnly) {
|
||||
if (perms['clipboard'] != false) {
|
||||
menu.add(RemoteMenuEntry.disableClipboard(key, padding,
|
||||
dismissFunc: cancelFunc));
|
||||
|
|
|
|||
Loading…
Reference in a new issue