mobile save config when disable input
This commit is contained in:
parent
9f69cf3d6e
commit
93d196c2f8
@ -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!);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user