mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
mobile save config when disable input
This commit is contained in:
@@ -263,8 +263,11 @@ class ServerModel with ChangeNotifier {
|
|||||||
toggleInput() {
|
toggleInput() {
|
||||||
if (_inputOk) {
|
if (_inputOk) {
|
||||||
parent.target?.invokeMethod("stop_input");
|
parent.target?.invokeMethod("stop_input");
|
||||||
|
bind.mainSetOption(key: "enable-keyboard", value: 'N');
|
||||||
} else {
|
} else {
|
||||||
if (parent.target != null) {
|
if (parent.target != null) {
|
||||||
|
/// the result of toggle-on depends on user actions in the settings page.
|
||||||
|
/// handle result, see [ServerModel.changeStatue]
|
||||||
showInputWarnAlert(parent.target!);
|
showInputWarnAlert(parent.target!);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user