Skip to content

Commit

Permalink
babe wake up they cahnged the flag name for SOME reason (#234)
Browse files Browse the repository at this point in the history
* babe wake up they cahnged the flag name for SOME reason

omgggg!!!!!!!!!!!

* ok pookie

* RRAAAAAA!!!!!!!!!!!!!!!!!!!!!!!!!!!!

THEY REMOVED THE OPTIONS KWARG TOOOOOOOOOOOO OOOOOHHH MY GOOOODDDDDDDDDDDDDDDDDDDDD

* Remove comment about options
  • Loading branch information
redd-rl authored Nov 22, 2024
1 parent d52997e commit 44daacf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions rlbot_gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,23 +713,17 @@ def is_full_python():


def launch_eel(use_chrome):
port = 40993 # Arbitrary choice from the 'registered sockets' range of 1024 to 49151
options = {'port': port}

if use_chrome:
# Don't put anything in the options dict. The dict is used by old eel,
# and old eel (0.10) defaults nicely to chrome app.
browser_mode = 'chrome' # New eel (1.0) needs it to be 'chrome'.
else:
browser_mode = 'system-default'
options['mode'] = browser_mode

# This disable_cache thing only works if you have tare's fork of eel https://github.com/ChrisKnott/Eel/pull/102
# installed to pip locally using this technique https://stackoverflow.com/a/49684835
# The suppress_error=True avoids the error "'options' argument deprecated in v1.0.0", we need to keep the
# options argument since a lot of our user base has an older version of eel.
eel.start('main.html', size=(1300, 870), block=False, callback=on_websocket_close, options=options,
disable_cache=True, mode=browser_mode, port=port, suppress_error=True)
eel.start('main.html', size=(1300, 870), block=False, close_callback=on_websocket_close, port=40993,
disable_cache=True, mode=browser_mode, suppress_error=True)


def init_settings():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import setuptools

__version__ = '0.0.156'
__version__ = '0.0.157'

with open("README.md", "r") as readme_file:
long_description = readme_file.read()
Expand Down

0 comments on commit 44daacf

Please sign in to comment.