From 6210a2668fdca2b43693164a9051306aba3a7be4 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Sun, 8 Dec 2019 17:26:18 -0700 Subject: [PATCH] Attempt to refresh shortcuts on create --- src/native/interop.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/native/interop.cpp b/src/native/interop.cpp index 97f5b83..37b49c5 100644 --- a/src/native/interop.cpp +++ b/src/native/interop.cpp @@ -99,6 +99,10 @@ extern "C" int saveShortcut( goto err; } + // Notify that a new shortcut was created using the shell api + SHChangeNotify(SHCNE_CREATE, SHCNF_PATH, shortcutPath, NULL); + SHChangeNotify(SHCNE_UPDATEITEM, SHCNF_PATH, shortcutPath, NULL); + persistFile->Release(); shellLink->Release(); CoUninitialize();