Skip to content

Commit

Permalink
refactor(controllers): remove Qt5 quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
git-developer committed Jan 27, 2025
1 parent 5b5a714 commit fe550a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions res/controllers/Behringer-Extension-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,12 @@
isEnabled: function() { return this.id !== 0; },
start: function() {
this.reset();
this.id = engine.beginTimer(this.timeout, function() {
this.id = engine.beginTimer(this.timeout, () => {
if (this.oneShot) {
this.disable();
}
this.action.call(this.owner);
}.bind(this), this.oneShot); // .bind(this) is required instead of arrow function for Qt < 6.2.4 due to QTBUG-95677
}, this.oneShot);
},
reset: function() {
if (this.isEnabled()) {
Expand Down

0 comments on commit fe550a3

Please sign in to comment.