summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-02-11 00:35:56 +0100
committerPetr Mrázek <peterix@gmail.com>2018-02-11 00:35:56 +0100
commit38e669dbf55635fd715e3a782b39c9f0881eb601 (patch)
treeb3108050526de88d2f94922a83fe9d2755e4fd10 /application
parentca117654368c21ea55fe51b82500447404d9beae (diff)
downloadMultiMC-38e669dbf55635fd715e3a782b39c9f0881eb601.tar
MultiMC-38e669dbf55635fd715e3a782b39c9f0881eb601.tar.gz
MultiMC-38e669dbf55635fd715e3a782b39c9f0881eb601.tar.lz
MultiMC-38e669dbf55635fd715e3a782b39c9f0881eb601.tar.xz
MultiMC-38e669dbf55635fd715e3a782b39c9f0881eb601.zip
NOISSUE change FS::updateTimestamp to work with directories too, use it to fix icon issues on macOS
Diffstat (limited to 'application')
-rw-r--r--application/MultiMC.cpp2
1 files changed, 2 insertions, 0 deletions
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