summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/tabs.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-11-10 09:52:44 +0100
committeremkael <emkael@tlen.pl>2019-11-10 10:04:18 +0100
commitd4b498feef0e58df11d4ac4f0523cc51bb6d30de (patch)
tree08b33963d30e4323f98baf671b5541ca94f88e4c /jfr_playoff/gui/tabs.py
parent26f7aeb88bdfd4cb89d41b51e08ac2511d06da93 (diff)
GUI for custom final order config
Diffstat (limited to 'jfr_playoff/gui/tabs.py')
-rw-r--r--jfr_playoff/gui/tabs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/jfr_playoff/gui/tabs.py b/jfr_playoff/gui/tabs.py
index cc777fa..3ebc5be 100644
--- a/jfr_playoff/gui/tabs.py
+++ b/jfr_playoff/gui/tabs.py
@@ -222,6 +222,9 @@ class TeamsTab(PlayoffTab):
tieConfig = self.previewFrame.getTieConfig()
if tieConfig is not None and isinstance(config['teams'], dict):
config['teams']['ties'] = tieConfig
+ orderConfig = self.previewFrame.getOrderConfig()
+ if orderConfig:
+ config['custom_final_order'] = orderConfig
return config
def setValues(self, config):
@@ -232,6 +235,8 @@ class TeamsTab(PlayoffTab):
self.previewFrame.setTieConfig(
config['teams']['ties']
if 'teams' in config and 'ties' in config['teams'] else [])
+ self.previewFrame.setOrderConfig(
+ config.get('custom_final_order', []))
def getConfig(self):
return self.collectConfig()