From 150120c7de64ee2cb6273559d84a43817735aeb8 Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 12 Dec 2024 23:07:43 +0100 Subject: [PATCH] fix: callbacks --- internal/core/services/queue_manager.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/core/services/queue_manager.go b/internal/core/services/queue_manager.go index 5010adf..64ea20b 100644 --- a/internal/core/services/queue_manager.go +++ b/internal/core/services/queue_manager.go @@ -189,6 +189,11 @@ func (sc *QueueManager) QueueLockFile() error { } if status.Status == domain.ScrollLockStatusDone { + //check callback + if callback, ok := sc.callbacksPostRun[cmd]; ok && callback != nil { + callback() + } + //not sure if this can even happen, maybe on updates if command.Run != domain.RunModeRestart {