Skip to content

Commit 394f9ee

Browse files
committed
SDK/BaseWidget: Fix entity activation of disabled widgets
1 parent f28d1ef commit 394f9ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SDK/src/NDK/BaseWidget.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ namespace Ndk
212212
auto it = std::find_if(m_entities.begin(), m_entities.end(), [&](const WidgetEntity& widgetEntity) { return widgetEntity.handle == entity; });
213213
NazaraAssert(it != m_entities.end(), "Entity does not belong to this widget");
214214

215+
if (!IsVisible())
216+
entity->Disable(); // Next line will override isEnabled status
217+
215218
it->isEnabled = true;
216219
});
217220

0 commit comments

Comments
 (0)