Skip to content

Commit

Permalink
Add callback for dashboard light & camera task
Browse files Browse the repository at this point in the history
  • Loading branch information
thera2002 committed Nov 8, 2024
1 parent 402e5c1 commit 777d224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LensDashboardNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class LensDashboardNavigator extends LensDashboard {
options = Object.assign({
toolboxHeight: 22,
actions: {
camera: { label: 'camera', task: (event) => { if (!this.actions.camera.active) this.toggleLightController(); } },
light: { label: 'light', task: (event) => { if (!this.actions.light.active) this.toggleLightController(); } },
camera: { label: 'camera', cb_task: (() => { }), task: (event) => { if (!this.actions.camera.active) this.toggleLightController(); this.actions.camera.cb_task() } },
light: { label: 'light', cb_task: (() => { }), task: (event) => { if (!this.actions.light.active) this.toggleLightController(); this.actions.light.cb_task() } },
annoswitch: { label: 'annoswitch', type: 'toggle', toggleClass: '.openlime-lens-dashboard-annoswitch-bar', task: (event) => { } },
prev: { label: 'prev', task: (event) => { } },
down: { label: 'down', task: (event) => { } },
Expand Down

0 comments on commit 777d224

Please sign in to comment.