NOISSUE change FS::updateTimestamp to work with directories too, use it to fix icon issues on macOS

This commit is contained in:
Petr Mrázek
2018-02-11 00:35:56 +01:00
parent ca11765436
commit 38e669dbf5
2 changed files with 17 additions and 20 deletions

View File

@ -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