mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
update ui
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user