From 38e669dbf55635fd715e3a782b39c9f0881eb601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 11 Feb 2018 00:35:56 +0100 Subject: NOISSUE change FS::updateTimestamp to work with directories too, use it to fix icon issues on macOS --- application/MultiMC.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'application') diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp index e8309ceb..a5b3b347 100644 --- a/application/MultiMC.cpp +++ b/application/MultiMC.cpp @@ -330,6 +330,8 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) #elif defined(Q_OS_MAC) QDir foo(FS::PathCombine(binPath, "../..")); m_rootPath = foo.absolutePath(); + // on macOS, touch the root to force Finder to reload the .app metadata (and fix any icon change issues) + FS::updateTimestamp(m_rootPath); #endif #ifdef MULTIMC_JARS_LOCATION -- cgit v1.2.3