Skip to content

Commit

Permalink
Click-to-file is enabled if CTR is disabled (hobbyfarm#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
jggoebel authored May 22, 2024
1 parent 1e44739 commit 1cc0889
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/scenario/ctr.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ export class CtrComponent implements OnInit, AfterViewInit {
}

public ctr() {
if (this.count > 0 && this.enabled) {
// Only execute if we have executions left AND we have a Click-To-File (this.filename is given) or CTR is enabled
if (this.count > 0 && (this.enabled || this.filename)) {
this.ctrService.sendCodeById(this.ctrId, this.target);
this.executed = true;
this.shape = 'success-standard';
Expand Down

0 comments on commit 1cc0889

Please sign in to comment.