mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
implement auto login and remember password
This commit is contained in:
@@ -92,8 +92,6 @@ void push_luavalue(const std::string& str)
|
||||
bool luavalue_cast(int index, std::string& str)
|
||||
{
|
||||
str = g_lua.toString(index);
|
||||
if(str.empty() && g_lua.isString(index) && !g_lua.isNil())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -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