Skip to content

Commit

Permalink
Added default avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemmstone committed Jan 15, 2024
1 parent d1b58ca commit 8d73b60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
/Builds/
/.idea/
/Data/keys.json
/Data/user_token.json
/Data/user_token.json
build.sh
build.bat
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(self):
self.color = (184, 205, 238)
self.file_parameters_current = {}
self.current_files = []
self.TwitchAPI = None
self.json_file = os.path.normpath(f"Data{os.path.sep}parameters.json")
self.current_json_file = os.path.normpath(f"Data{os.path.sep}current.json")
self.current_model_json_file = os.path.normpath(f"Data{os.path.sep}current_model.json")
Expand Down Expand Up @@ -266,6 +267,7 @@ def start_twitch_connection(self, values, starting=False):
self.TwitchAPI.event_signal.connect(self.shortcut_received)
self.twitchApiBtn.setText("Change Twitch API keys")
self.TwitchAPI.start()
self.get_shortcuts()

def update_viewer_files(self):
try:
Expand Down Expand Up @@ -422,7 +424,8 @@ def get_shortcuts(self):
})
self.midi_listener.update_shortcuts(midi)
self.keyboard_listener.update_shortcuts(keyboard)
self.TwitchAPI.update_shortcuts(twitch)
if self.TwitchAPI is not None:
self.TwitchAPI.update_shortcuts(twitch)

def changePage(self, index):
self.stackedWidget.setCurrentIndex(index)
Expand Down

0 comments on commit 8d73b60

Please sign in to comment.