App: Apply code review suggestions

This commit is contained in:
Max Wilfinger
2025-11-02 17:35:17 +01:00
parent d5ccc4a8d1
commit e1c4293706
2 changed files with 71 additions and 34 deletions

View File

@@ -247,10 +247,16 @@ void Property::destroy(Property* p)
}
}
bool Property::enableNotify(bool on)
bool Property::enableNotify(bool enable)
{
bool isNotify = isNotifyEnabled();
on ? StatusBits.reset(DisableNotify) : StatusBits.set(DisableNotify);
if (enable) {
StatusBits.reset(DisableNotify);
}
else {
StatusBits.set(DisableNotify);
}
return isNotify;
}