1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 01:25:20 +02:00

Refactor ContentDB integration (#14507)

This commit is contained in:
rubenwardy
2024-04-09 21:18:40 +02:00
committed by GitHub
parent cc1bfc6d03
commit 284f6d3682
12 changed files with 1356 additions and 1244 deletions

View File

@@ -225,7 +225,7 @@ local function handle_buttons(tabview, fields, tabname, tabdata)
end
if fields.btn_contentdb then
local dlg = create_store_dlg()
local dlg = create_contentdb_dlg()
dlg:set_parent(tabview)
tabview:hide()
dlg:show()
@@ -255,7 +255,7 @@ local function handle_buttons(tabview, fields, tabname, tabdata)
if fields.btn_mod_mgr_update then
local pkg = packages:get_list()[tabdata.selected_pkg]
local dlg = create_store_dlg(nil, pkgmgr.get_contentdb_id(pkg))
local dlg = create_contentdb_dlg(nil, pkgmgr.get_contentdb_id(pkg))
dlg:set_parent(tabview)
tabview:hide()
dlg:show()