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

Method updateDialogState

launcher/ui/dialogs/CopyInstanceDialog.cpp:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void CopyInstanceDialog::updateDialogState()
91{
92 auto allowOK = !instName().isEmpty();
93 auto OkButton = ui->buttonBox->button(QDialogButtonBox::Ok);
94 if(OkButton->isEnabled() != allowOK)
95 {
96 OkButton->setEnabled(allowOK);
97 }
98}
99
100QString CopyInstanceDialog::instName() const
101{

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.80
isEnabledMethod · 0.80
setEnabledMethod · 0.80

Tested by

no test coverage detected