From ce21315cf9cbd455ae83dda7e64df776e939197c Mon Sep 17 00:00:00 2001 From: Salim Kanoun Date: Sun, 26 Nov 2023 15:14:11 +0100 Subject: [PATCH 1/2] reset custom image load performed on HP exit --- .../services/HangingProtocolService/HangingProtocolService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts b/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts index 104c4be346d..8686db3d906 100644 --- a/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts +++ b/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts @@ -413,7 +413,7 @@ export default class HangingProtocolService extends PubSubService { * * @returns A boolean indicating whether a custom image load has been performed or not. */ - public getCustomImageLoadPerformed(): boolean { + private getCustomImageLoadPerformed(): boolean { return this.customImageLoadPerformed; } @@ -957,6 +957,7 @@ export default class HangingProtocolService extends PubSubService { try { if (!this.protocol || this.protocol.id !== protocol.id) { this.stageIndex = options?.stageIndex || 0; + this.customImageLoadPerformed =false; this._originalProtocol = this._copyProtocol(protocol); // before reassigning the protocol, we need to check if there is a callback From 842e532a096e6ce5914073cfe166d5d1fbf8eb05 Mon Sep 17 00:00:00 2001 From: Salim Kanoun Date: Sun, 26 Nov 2023 15:21:42 +0100 Subject: [PATCH 2/2] comments --- .../services/HangingProtocolService/HangingProtocolService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts b/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts index 8686db3d906..c2c987c31ea 100644 --- a/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts +++ b/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts @@ -957,7 +957,8 @@ export default class HangingProtocolService extends PubSubService { try { if (!this.protocol || this.protocol.id !== protocol.id) { this.stageIndex = options?.stageIndex || 0; - this.customImageLoadPerformed =false; + //Reset load performed to false to re-fire loading strategy at new study opening + this.customImageLoadPerformed = false; this._originalProtocol = this._copyProtocol(protocol); // before reassigning the protocol, we need to check if there is a callback