diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-02-11 00:35:56 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-02-11 00:35:56 +0100 |
commit | 38e669dbf55635fd715e3a782b39c9f0881eb601 (patch) | |
tree | b3108050526de88d2f94922a83fe9d2755e4fd10 /application | |
parent | ca117654368c21ea55fe51b82500447404d9beae (diff) | |
download | PrismLauncher-38e669dbf55635fd715e3a782b39c9f0881eb601.tar.gz PrismLauncher-38e669dbf55635fd715e3a782b39c9f0881eb601.tar.bz2 PrismLauncher-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.cpp | 2 |
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 |