Fix app data dir not opening on macOS when "Open AppData" button pressed (#2537)

This commit is contained in:
James Upjohn
2021-03-21 01:40:50 +13:00
committed by GitHub
parent b02403a7d8
commit 79bc700743
2 changed files with 5 additions and 0 deletions
@@ -455,7 +455,11 @@ void GeneralPage::initLayout(GeneralPageView &layout)
layout.addDescription("All local files like settings and cache files are "
"store in this directory.");
layout.addButton("Open AppData directory", [] {
#ifdef Q_OS_DARWIN
QDesktopServices::openUrl("file://" + getPaths()->rootAppDataDirectory);
#else
QDesktopServices::openUrl(getPaths()->rootAppDataDirectory);
#endif
});
layout.addSubtitle("Temporary files (Cache)");