From 44f0cf40d78ae1df9caa12953cc0ce13607ac0c1 Mon Sep 17 00:00:00 2001 From: Kristof Dhondt Date: Sun, 28 Apr 2024 14:36:48 +0200 Subject: [PATCH] Add log message informing the user an old application icon may still be cached --- .../gluonhq/substrate/target/WindowsTargetConfiguration.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gluonhq/substrate/target/WindowsTargetConfiguration.java b/src/main/java/com/gluonhq/substrate/target/WindowsTargetConfiguration.java index 14faf4ae..80188f75 100644 --- a/src/main/java/com/gluonhq/substrate/target/WindowsTargetConfiguration.java +++ b/src/main/java/com/gluonhq/substrate/target/WindowsTargetConfiguration.java @@ -285,7 +285,10 @@ private void createIconResource() throws InterruptedException, IOException { // During development if user changes the application icon, the same is not reflected immediately in Explorer. // To fix this, a cache clearance of the Windows explorer is required. private void clearExplorerCache() throws IOException, InterruptedException { - if (!executableOnPath("ie4uinit.exe")) return; + if (!executableOnPath("ie4uinit.exe")) { + Logger.logInfo("The application icon cache could not be cleared. As a result, the icon may not have been updated properly."); + return; + } ProcessRunner clearCache = new ProcessRunner("ie4uinit"); clearCache.addArg(findCacheFlag()); clearCache.runProcess("Clear Explorer cache");