MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / updateDialogState

Method updateDialogState

launcher/ui/dialogs/CopyInstanceDialog.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void CopyInstanceDialog::updateDialogState()
123{
124 auto allowOK = !instName().isEmpty();
125 auto OkButton = ui->buttonBox->button(QDialogButtonBox::Ok);
126 if (OkButton->isEnabled() != allowOK) {
127 OkButton->setEnabled(allowOK);
128 }
129}
130
131QString CopyInstanceDialog::instName() const
132{

Callers

nothing calls this directly

Calls 3

isEnabledMethod · 0.80
setEnabledMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected