mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-11 00:51:29 +03:00
Add peer option: zoom cursor & show menubar on conn
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -47,7 +47,8 @@ class MenubarState {
|
||||
}
|
||||
|
||||
_initSet(bool s, bool p) {
|
||||
show = RxBool(s);
|
||||
// Show remubar when connection is established.
|
||||
show = RxBool(true);
|
||||
_pin = RxBool(p);
|
||||
}
|
||||
|
||||
@@ -1109,6 +1110,25 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
|
||||
);
|
||||
}());
|
||||
|
||||
/// Show remote cursor
|
||||
displayMenu.add(() {
|
||||
final opt = 'zoom-cursor';
|
||||
final state = PeerBoolOption.find(widget.id, opt);
|
||||
return MenuEntrySwitch2<String>(
|
||||
switchType: SwitchType.scheckbox,
|
||||
text: translate('Zoom cursor'),
|
||||
getter: () {
|
||||
return state;
|
||||
},
|
||||
setter: (bool v) async {
|
||||
state.value = v;
|
||||
await bind.sessionToggleOption(id: widget.id, value: opt);
|
||||
},
|
||||
padding: padding,
|
||||
dismissOnClicked: true,
|
||||
);
|
||||
}());
|
||||
|
||||
/// Show quality monitor
|
||||
displayMenu.add(MenuEntrySwitch<String>(
|
||||
switchType: SwitchType.scheckbox,
|
||||
|
||||
Reference in New Issue
Block a user