From 6918f5663f03e14334413bb4f443400edce148bb Mon Sep 17 00:00:00 2001 From: Christoph Hart <> Date: Sun, 8 Oct 2023 11:02:17 +0200 Subject: [PATCH] - fix shortcut window close button --- hi_backend/backend/BackendApplicationCommandWindows.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hi_backend/backend/BackendApplicationCommandWindows.cpp b/hi_backend/backend/BackendApplicationCommandWindows.cpp index 319b6f5cf..127c49f05 100644 --- a/hi_backend/backend/BackendApplicationCommandWindows.cpp +++ b/hi_backend/backend/BackendApplicationCommandWindows.cpp @@ -1842,10 +1842,12 @@ struct ShortcutEditor : public QuasiModalComponent, }; }; - Path createPath(const String&) const override + Path createPath(const String& url) const override { Path p; - p.loadPathFromData(HiBinaryData::ProcessorEditorHeaderIcons::closeIcon, sizeof(HiBinaryData::ProcessorEditorHeaderIcons::closeIcon)); + + LOAD_EPATH_IF_URL("close", HiBinaryData::ProcessorEditorHeaderIcons::closeIcon); + return p; }