Skip to content

Commit

Permalink
Temp patch so the UI starts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziktofel committed Sep 16, 2024
1 parent 99612dc commit 38be4a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions worlds/sc2/gui_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def apply_window_defaults() -> List[str]:
warnings.append(f"Invalid value for options.yaml key sc2_options.window_width: '{SC2World.settings.window_width}'. Expected a positive integer.")
window_width = Starcraft2Settings.window_width

from kivy.config import Config
Config.set('graphics', 'width', str(window_width))
Config.set('graphics', 'height', str(window_height))
if SC2World.settings.window_maximized:
Config.set('graphics', 'window_state', 'maximized')
# from kivy.config import Config
# Config.set('graphics', 'width', str(window_width))
# Config.set('graphics', 'height', str(window_height))
# if SC2World.settings.window_maximized:
# Config.set('graphics', 'window_state', 'maximized')
return warnings

0 comments on commit 38be4a1

Please sign in to comment.