Skip to content

Commit

Permalink
Choreography plugins: Only call update_ui() in Capture
Browse files Browse the repository at this point in the history
Fixes HMD3DChoreographyPlugin crash in Service, as Service does not initialize any plugin UI.
  • Loading branch information
papr committed Jun 24, 2020
1 parent 07b3481 commit e2d5170
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,10 @@ def deinit_ui(self):
self.__ui_button_validation = None

def recent_events(self, events):
self.update_ui()
if self.g_pool.app == "capture":
# UI is only initialized in Capture. In other applications, i.e. Service,
# calling this function will crash with an AttributeError.
self.update_ui()

def on_notify(self, note_dict):
"""Handles choreography notifications
Expand Down

0 comments on commit e2d5170

Please sign in to comment.