parent
19ab3fffba
commit
2c3449f263
2 changed files with 12 additions and 2 deletions
|
|
@ -37,7 +37,8 @@ class DiscordConnector:
|
|||
communicates to get voice & text info to display
|
||||
"""
|
||||
|
||||
def __init__(self, text_settings, voice_settings, text_overlay, voice_overlay):
|
||||
def __init__(self, discover, text_settings, voice_settings, text_overlay, voice_overlay):
|
||||
self.discover = discover
|
||||
self.text_settings = text_settings
|
||||
self.text_overlay = text_overlay
|
||||
self.voice_settings = voice_settings
|
||||
|
|
@ -584,6 +585,9 @@ class DiscordConnector:
|
|||
|
||||
Called at 60Hz approximately but has near zero bearing on rendering
|
||||
"""
|
||||
if self.discover.show_settings_delay:
|
||||
self.discover.show_settings_delay = False
|
||||
self.discover.show_settings()
|
||||
# Ensure connection
|
||||
if not self.websocket:
|
||||
self.connect()
|
||||
|
|
|
|||
|
|
@ -37,12 +37,15 @@ class Discover:
|
|||
self.ind = None
|
||||
self.tray = None
|
||||
self.steamos = False
|
||||
self.show_settings_delay=False
|
||||
self.settings = None
|
||||
|
||||
self.do_args(args, True)
|
||||
|
||||
self.create_gui()
|
||||
|
||||
self.connection = DiscordConnector(
|
||||
self,
|
||||
self.settings.text_settings,
|
||||
self.settings.voice_settings,
|
||||
self.text_overlay,
|
||||
|
|
@ -78,7 +81,10 @@ class Discover:
|
|||
if normal_close:
|
||||
sys.exit(0)
|
||||
if "--configure" in data or "-c" in data:
|
||||
self.show_settings()
|
||||
if self.settings:
|
||||
self.show_settings()
|
||||
else:
|
||||
self.show_settings_delay = True
|
||||
if "--close" in data or "-x" in data:
|
||||
sys.exit(0)
|
||||
if "--steamos" in data or "-s" in data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue