Don't remove background of games in submenus
authorBlockMen <nmuelll@web.de>
Wed, 23 Oct 2013 10:58:23 +0000 (12:58 +0200)
committerNovatux <nathanael.courant@laposte.net>
Fri, 1 Nov 2013 15:46:25 +0000 (16:46 +0100)
builtin/mainmenu.lua

index 0f34c67eadf60026a4cf5cc5e38d0db0c5498dba..3b988cd8d6373b22194095db00c071ff9f179f09 100644 (file)
@@ -812,7 +812,7 @@ function tabbuilder.handle_tab_buttons(fields)
        
        --handle tab changes
        if tabbuilder.current_tab ~= tabbuilder.old_tab then
-               if tabbuilder.current_tab ~= "singleplayer" then
+               if tabbuilder.current_tab ~= "singleplayer" and not tabbuilder.is_dialog then
                        menu.update_gametype(true)
                end
        end