Skip to content

Commit

Permalink
fix(controller): document root cause QTBUG-95677
Browse files Browse the repository at this point in the history
  • Loading branch information
git-developer committed Mar 18, 2024
1 parent ea07859 commit 83bfc38
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions res/controllers/Behringer-Extension-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,12 @@
isEnabled: function() { return this.id !== 0; },
start: function() {
this.reset();
const timer = this;
this.id = engine.beginTimer(this.timeout, () => {
if (timer.oneShot) {
timer.disable();
this.id = engine.beginTimer(this.timeout, function() {
if (this.oneShot) {
this.disable();
}
timer.action.call(timer.owner);
}, this.oneShot);
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
},
reset: function() {
if (this.isEnabled()) {
Expand Down

0 comments on commit 83bfc38

Please sign in to comment.