mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add gui.load_document namespace extension table argument & pass app library from standard pages loader
This commit is contained in:
parent
d6b6c6903a
commit
e794aa864d
2 changed files with 11 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ function gui_util.load_page(query)
|
|||
local filename = file.find(string.format("layouts/pages/%s.xml", name))
|
||||
if filename then
|
||||
name = file.prefix(filename)..":pages/"..name
|
||||
gui.load_document(filename, name, args)
|
||||
gui.load_document(filename, name, args, { app = __vc_app })
|
||||
return name
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue