Skip to content

Commit

Permalink
update some timings, layout builder now runs at least once
Browse files Browse the repository at this point in the history
  • Loading branch information
Lioncat6 committed Oct 28, 2024
1 parent 8556f21 commit 7bc4b3d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions osc-chat-tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,7 @@ def updateUI():
window['spotify_client_id'].update(value=spotify_client_id)
window['useTimeParameters'].update(value=useTimeParameters)


if spotifyLinkStatus != 'Unlinked':
window['spotifyLinkStatus'].update(value=spotifyLinkStatus)
if 'Error' in spotifyLinkStatus and not 'Linked' in spotifyLinkStatus:
Expand All @@ -1236,6 +1237,9 @@ def updateUI():
window['spotifyLinkStatus'].update(text_color='green')
window['linkSpotify'].update(text='Unlink Spotify 🔗', button_color= "#c68341")
window.write_event_value('Apply', '')
#Making sure the layout updates at least once.
layoutStorageAccess = window['layoutStorage'].get()
layoutPreviewBuilder(layoutStorageAccess, window)
except Exception as e:
outputLog('Failed to update UI\n'+str(e))
pass
Expand Down Expand Up @@ -1835,7 +1839,7 @@ def oscForwardingManager():
global oscListen
global useForewordMemory
global windowAccess
time.sleep(.1)
time.sleep(.5)
listen_socket = None
forward_sockets = []
while run:
Expand Down Expand Up @@ -2730,4 +2734,3 @@ def pid_check(pid):
mainUI.start()
update_checker(False)
timeParameterThread = Thread(target=timeParameterUpdate).start()

0 comments on commit 7bc4b3d

Please sign in to comment.