Skip to content

Commit

Permalink
Add log message informing the user an old application icon may still …
Browse files Browse the repository at this point in the history
…be cached
  • Loading branch information
kkriske committed Apr 28, 2024
1 parent 73b53d1 commit 44f0cf4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 44f0cf4

Please sign in to comment.