diff options
author | Redson <redson@riseup.net> | 2023-05-09 06:36:21 -0300 |
---|---|---|
committer | Redson <redson@riseup.net> | 2023-05-09 06:36:21 -0300 |
commit | 475761b295b3c77aa852af254f783340055090f6 (patch) | |
tree | db744704cb44b85ac7634a5d80c8e18aa372f298 /launcher/ui | |
parent | 0b251fa7545dbe7e61a2a57f5f3e0ff2198b2314 (diff) | |
download | PrismLauncher-475761b295b3c77aa852af254f783340055090f6.tar.gz PrismLauncher-475761b295b3c77aa852af254f783340055090f6.tar.bz2 PrismLauncher-475761b295b3c77aa852af254f783340055090f6.zip |
fix: Prism sets the data dir to the working directory.
Signed-off-by: Redson <redson@riseup.net>
Diffstat (limited to 'launcher/ui')
-rw-r--r-- | launcher/ui/MainWindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index 8d62dcd6..629ace83 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -1203,10 +1203,10 @@ void MainWindow::on_actionViewInstanceFolder_triggered() void MainWindow::on_actionViewLauncherRootFolder_triggered() { - QDir rootDir(FS::PathCombine(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation), "..")); - QString DataPath = rootDir.absolutePath(); + QDir dataDir = QDir::current(); + QString dataPath = dataDir.absolutePath(); - DesktopServices::openDirectory(DataPath); + DesktopServices::openDirectory(dataPath); } void MainWindow::refreshInstances() |