From: PilzAdam Date: Mon, 5 Aug 2013 11:19:16 +0000 (+0200) Subject: Dont download modstore info if its isnt needed X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=0d60bc55e4373167141f0f08a10a2174cc7e029a;p=zefram%2Fminetest%2Fminetest_engine.git Dont download modstore info if its isnt needed --- diff --git a/builtin/modmgr.lua b/builtin/modmgr.lua index 20128737..e7f028f6 100644 --- a/builtin/modmgr.lua +++ b/builtin/modmgr.lua @@ -551,6 +551,7 @@ function modmgr.handle_modmgr_buttons(fields) end if fields["btn_mod_mgr_download"] ~= nil then + modstore.update_modlist() retval.current_tab = "dialog_modstore_unsorted" retval.is_dialog = true retval.show_buttons = false diff --git a/builtin/modstore.lua b/builtin/modstore.lua index 870eccdd..6d761d47 100644 --- a/builtin/modstore.lua +++ b/builtin/modstore.lua @@ -32,7 +32,6 @@ function modstore.init() modstore.basetexturedir = engine.get_gamepath() .. DIR_DELIM .. ".." .. DIR_DELIM .. "textures" .. DIR_DELIM .. "base" .. DIR_DELIM .. "pack" .. DIR_DELIM - modstore.update_modlist() modstore.current_list = nil