option to disable jiggler

This commit is contained in:
Maxim Devaev
2023-10-26 08:28:18 +03:00
parent aec6727020
commit 7bb5531100
8 changed files with 58 additions and 21 deletions

View File

@@ -133,7 +133,8 @@ export function Hid(__getGeometry, __recorder) {
let has_relative_squash = false;
if (state) {
$("hid-jiggler-switch").checked = !!state.jiggler.enabled;
tools.feature.setEnabled($("hid-jiggler"), state.jiggler.enabled);
$("hid-jiggler-switch").checked = state.jiggler.active;
}
if (state && state.online) {
let keyboard_outputs = state.keyboard.outputs.available;