Dont download modstore info if its isnt needed
authorPilzAdam <pilzadam@minetest.net>
Mon, 5 Aug 2013 11:19:16 +0000 (13:19 +0200)
committerPilzAdam <pilzadam@minetest.net>
Sat, 10 Aug 2013 11:35:38 +0000 (13:35 +0200)
builtin/modmgr.lua
builtin/modstore.lua

index 20128737afe960502c4d7d7d82ae13fd7c8d0c98..e7f028f6e965964f2f48a8bafd22594f10ba93a5 100644 (file)
@@ -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
index 870eccdd34a06742e0314b9104949b1d36bb463e..6d761d47cc3683a575c722fa634396e0f10d5217 100644 (file)
@@ -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