MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / updateDialogState

Method updateDialogState

launcher/ui/dialogs/NewInstanceDialog.cpp:245–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void NewInstanceDialog::updateDialogState()
246{
247 auto allowOK = creationTask && !instName().isEmpty();
248 auto OkButton = m_buttons->button(QDialogButtonBox::Ok);
249 if(OkButton->isEnabled() != allowOK)
250 {
251 OkButton->setEnabled(allowOK);
252 }
253}
254
255QString NewInstanceDialog::instName() const
256{

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.80
isEnabledMethod · 0.80
setEnabledMethod · 0.80

Tested by

no test coverage detected