update ui

This commit is contained in:
arm64v8a
2023-06-05 14:34:15 +09:00
parent 1e9fa7eab4
commit 292a36eefb
18 changed files with 237 additions and 162 deletions

View File

@@ -129,15 +129,19 @@ void EditCustom::onStart(std::shared_ptr<NekoGui::ProxyEntity> _ent) {
}
bool EditCustom::onEnd() {
auto bean = this->ent->CustomBean();
SAVE_CUSTOM_BEAN
if (bean->core.isEmpty()) {
if (get_edit_text_name().isEmpty()) {
MessageBoxWarning(software_name, tr("Name cannot be empty."));
return false;
}
if (ui->core->currentText().isEmpty()) {
MessageBoxWarning(software_name, tr("Please pick a core."));
return false;
}
auto bean = this->ent->CustomBean();
SAVE_CUSTOM_BEAN
return true;
}