| 272 | connect(ui.enableDefault_check, &QCheckBox::toggled, this, [this](bool state) { sets.defOn = state; QiJson::SaveJson(); }); |
| 273 | connect(ui.showState_check, &QCheckBox::toggled, this, [this](bool state) { sets.showTips = state; QiJson::SaveJson(); }); |
| 274 | connect(ui.sound_check, &QCheckBox::toggled, this, [this](bool state) { sets.audFx = state; QiJson::SaveJson(); }); |
| 275 | connect(ui.hideDefault_check, &QCheckBox::toggled, this, [this](bool state) { sets.minMode = state; QiJson::SaveJson(); }); |
| 276 | connect(ui.pad_check, &QCheckBox::toggled, this, [this](bool state) { sets.pad = state; Qi::widget.keyEditReload(); QiJson::SaveJson(); }); |
| 277 | connect(ui.start_check, &QCheckBox::toggled, this, [this] { |
| 278 | if (Task::Find(L"QuickInput")) |
| 279 | { |
| 280 | if (Task::Delete(L"QuickInput")) ui.start_check->setChecked(false); |
| 281 | else |
| 282 | { |
| 283 | ui.start_check->setChecked(true); |
| 284 | MsgBox::Error(L"需要以管理员权限运行", L"删除任务错误"); |
| 285 | } |
| 286 | } |
nothing calls this directly
no test coverage detected