small update

parent a9811c47
Pipeline #209828363 passed with stages
in 2 minutes and 53 seconds
......@@ -27,7 +27,7 @@ from gui.shared import g_eventBus, events
from xfw_actionscript.python import as_xfw_cmd
from import overrideMethod
from import *
import xvm_main.python.config as config
......@@ -48,10 +48,10 @@ class XVM_Hangar_BattleType(object):
g_xvm_hangar_battle_type = XVM_Hangar_BattleType()
@overrideMethod(battle_selector_items._BattleSelectorItems, 'select')
def select(base, self, action, onlyActive=False):
userprefs.set(g_xvm_hangar_battle_type._userpref, action)
base(self, action, onlyActive)
@registerEvent(battle_selector_items._BattleSelectorItems, 'select')
def select(self, action, onlyActive=False):
if config.get('hangar/restoreBattleType', False):
userprefs.set(g_xvm_hangar_battle_type._userpref, action)
#needed for {{battleType}} macro
@overrideMethod(LobbyHeader, 'as_updateBattleTypeS')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment