mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
lua instances: adopt for last rebases with splitted lua source files
TODO: check/fix lua functionality, not tested yet
This commit is contained in:
@@ -148,7 +148,7 @@ int CLuaInstCCPicture::CCPictureHide(lua_State *L)
|
||||
lua_assert(lua_istable(L,1));
|
||||
CLuaCCPicture *D = CCPictureCheck(L, 1);
|
||||
if (!D) return 0;
|
||||
|
||||
#if 0
|
||||
bool no_restore = false;
|
||||
if (!tableLookup(L, "no_restore", no_restore)) {
|
||||
std::string tmp = "false";
|
||||
@@ -156,11 +156,12 @@ int CLuaInstCCPicture::CCPictureHide(lua_State *L)
|
||||
paramBoolDeprecated(L, tmp.c_str());
|
||||
no_restore = (tmp == "true" || tmp == "1" || tmp == "yes");
|
||||
}
|
||||
#endif
|
||||
if (D->parent) {
|
||||
D->cp->setPicture("");
|
||||
D->cp->paint();
|
||||
} else
|
||||
D->cp->hide(no_restore);
|
||||
D->cp->hide();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user