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
+1
View File
@@ -81,6 +81,7 @@
- Bugfix: Fixed hidden tooltips when always on top is active (#2384)
- Bugfix: Fix CLI arguments (`--help`, `--version`, `--channels`) not being respected (#2368, #2190)
- Bugfix: Fix Twitch cheer emotes not displaying tooltips when hovered (#2434)
- Bugfix: Fix directory not opening when clicking "Open AppData Directory" setting button on macOS (#2531, #2537)
- Dev: Updated minimum required Qt framework version to 5.12. (#2210)
- Dev: Migrated `Kraken::getUser` to Helix (#2260)
- Dev: Migrated `TwitchAccount::(un)followUser` from Kraken to Helix and moved it to `Helix::(un)followUser`. (#2306)
@@ -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)");