fix: Fix wrong usage of cast functions

This commit is contained in:
Nova 2024-08-29 13:57:27 +03:30
parent f039ab5164
commit 188bccde1f
No known key found for this signature in database
GPG Key ID: 389787EC83F5D73A

View File

@ -107,7 +107,7 @@ namespace NekoGui {
results->error = res->error;
return results;
}
if (item->CustomBean() != nullptr && item->CustomBean()->core == "internal-full") {
if (item->type == "custom" && item->CustomBean()->core == "internal-full") {
res->coreConfig["inbounds"] = QJsonArray();
results->fullConfigs[item->id] = QJsonObject2QString(res->coreConfig, true);
continue;