From 1cc08892852f3f293bcbfbd1fe66884210919c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Gerrit=20G=C3=B6bel?= <86782124+jggoebel@users.noreply.github.com> Date: Wed, 22 May 2024 13:18:47 +0200 Subject: [PATCH] Click-to-file is enabled if CTR is disabled (#203) --- src/app/scenario/ctr.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/scenario/ctr.component.ts b/src/app/scenario/ctr.component.ts index 474a4728..1dd4a94b 100644 --- a/src/app/scenario/ctr.component.ts +++ b/src/app/scenario/ctr.component.ts @@ -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';