mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-08-26 10:16:54 +08:00
fix view mode
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@ -450,6 +450,8 @@ class FfiModel with ChangeNotifier {
|
||||
handleResolutions(peerId, evt["resolutions"]);
|
||||
parent.target?.elevationModel.onPeerInfo(_pi);
|
||||
}
|
||||
setViewOnly(
|
||||
peerId, bind.sessionGetToggleOptionSync(id: peerId, arg: 'view-only'));
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
@ -522,6 +524,7 @@ class FfiModel with ChangeNotifier {
|
||||
}
|
||||
|
||||
void setViewOnly(String id, bool value) {
|
||||
if (version_cmp(_pi.version, '1.2.0') < 0) return;
|
||||
if (value) {
|
||||
ShowRemoteCursorState.find(id).value = value;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user