aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-06-15 12:48:22 +0200
committerGitHub <noreply@github.com>2023-06-15 12:48:22 +0200
commit6812823b55678230dd1fcd14973abc8d9a5d7245 (patch)
tree3dfcddfd9f88358fd7233b2a653d0e0705b51064 /launcher
parent475761b295b3c77aa852af254f783340055090f6 (diff)
downloadPrismLauncher-6812823b55678230dd1fcd14973abc8d9a5d7245.tar.gz
PrismLauncher-6812823b55678230dd1fcd14973abc8d9a5d7245.tar.bz2
PrismLauncher-6812823b55678230dd1fcd14973abc8d9a5d7245.zip
fix: simplify resolving of data path
Co-authored-by: TheKodeToad <TheKodeToad@proton.me> Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher')
-rw-r--r--launcher/ui/MainWindow.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
index 629ace83..6b219197 100644
--- a/launcher/ui/MainWindow.cpp
+++ b/launcher/ui/MainWindow.cpp
@@ -1203,9 +1203,7 @@ void MainWindow::on_actionViewInstanceFolder_triggered()
void MainWindow::on_actionViewLauncherRootFolder_triggered()
{
- QDir dataDir = QDir::current();
- QString dataPath = dataDir.absolutePath();
-
+ const QString dataPath = QDir::currentPath();
DesktopServices::openDirectory(dataPath);
}