mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
implement auto login and remember password
This commit is contained in:
@@ -361,7 +361,7 @@ void UIWidget::addChild(const UIWidgetPtr& child)
|
||||
auto self = asUIWidget();
|
||||
g_dispatcher.addEvent([self,child]() {
|
||||
// always focus new child
|
||||
if(child->isFocusable() && child->isExplicitlyVisible() && child->isExplicitlyEnabled())
|
||||
if(child->getParent() == self && child->isFocusable() && child->isExplicitlyVisible() && child->isExplicitlyEnabled())
|
||||
self->focusChild(child, Fw::ActiveFocusReason);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user