MCPcopy Create free account
hub / github.com/DSVVA/MHY_Scanner / checkBoxAutoScreen

Method checkBoxAutoScreen

src/UI/WindowMain.cpp:403–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403void WindowMain::checkBoxAutoScreen(bool clicked)
404{
405 int state = ui.checkBoxAutoScreen->checkState();
406 if ((int)userinfo["last_account"] == 0)
407 {
408 ui.checkBoxAutoScreen->setChecked(false);
409 QMessageBox::information(this, "提示", "你没有选择默认账号!", QMessageBox::Yes);
410 return;
411 }
412 if (state == Qt::Checked)
413 {
414 ui.checkBoxAutoScreen->setChecked(true);
415 userinfo["auto_start"] = true;
416 }
417 else if (state == Qt::Unchecked)
418 {
419 ui.checkBoxAutoScreen->setChecked(false);
420 userinfo["auto_start"] = false;
421 }
422 m_config->updateConfig(userinfo.dump());
423}
424
425void WindowMain::checkBoxAutoExit(bool clicked)
426{

Callers

nothing calls this directly

Calls 1

updateConfigMethod · 0.80

Tested by

no test coverage detected