Fix WUPSConfigItemV1::onCloseCallback

This commit is contained in:
Maschell 2024-04-27 17:44:51 +02:00
parent 69268535d8
commit 28d77bd1ce

View File

@ -81,6 +81,7 @@ namespace WUPSConfigAPIBackend {
void WUPSConfigItemV1::onCloseCallback() {
if (this->mCallbacks.callCallback == nullptr) {
DEBUG_FUNCTION_LINE_VERBOSE("callCallback callback not implemented. [%s]", mDisplayName.c_str());
return;
}
if (mDefaultValue != getCurrentValueDisplay()) {
this->mCallbacks.callCallback(mContext);