MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / customEvent

Method customEvent

source/ui/SettingsUi.cpp:274–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 2

setPadEnabledMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected