diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-06-15 12:49:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-15 12:49:21 +0200 |
commit | 90a4f622d2bc3eb78a0cb535ad4d8d7fdbcdc8e0 (patch) | |
tree | a9766da515f06c43eb019541c98c477f0a9f0d58 | |
parent | 9908e115aa6bdfcceefd1425406d1b6d1c1bdec4 (diff) | |
parent | 6812823b55678230dd1fcd14973abc8d9a5d7245 (diff) | |
download | PrismLauncher-90a4f622d2bc3eb78a0cb535ad4d8d7fdbcdc8e0.tar.gz PrismLauncher-90a4f622d2bc3eb78a0cb535ad4d8d7fdbcdc8e0.tar.bz2 PrismLauncher-90a4f622d2bc3eb78a0cb535ad4d8d7fdbcdc8e0.zip |
Merge pull request #1063 from RedsonBr140/feat/RootFolder
-rw-r--r-- | launcher/ui/MainWindow.cpp | 6 | ||||
-rw-r--r-- | launcher/ui/MainWindow.h | 2 | ||||
-rw-r--r-- | launcher/ui/MainWindow.ui | 13 |
3 files changed, 21 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index 1addfe21..e04011ca 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -1234,6 +1234,12 @@ void MainWindow::on_actionViewInstanceFolder_triggered() DesktopServices::openDirectory(str); } +void MainWindow::on_actionViewLauncherRootFolder_triggered() +{ + const QString dataPath = QDir::currentPath(); + DesktopServices::openDirectory(dataPath); +} + void MainWindow::refreshInstances() { APPLICATION->instances()->loadList(); diff --git a/launcher/ui/MainWindow.h b/launcher/ui/MainWindow.h index a0f912df..3bb20c4a 100644 --- a/launcher/ui/MainWindow.h +++ b/launcher/ui/MainWindow.h @@ -113,6 +113,8 @@ private slots: void on_actionViewInstanceFolder_triggered(); + void on_actionViewLauncherRootFolder_triggered(); + void on_actionViewSelectedInstFolder_triggered(); void refreshInstances(); diff --git a/launcher/ui/MainWindow.ui b/launcher/ui/MainWindow.ui index 9e639ab0..f67fb185 100644 --- a/launcher/ui/MainWindow.ui +++ b/launcher/ui/MainWindow.ui @@ -187,6 +187,7 @@ <bool>true</bool> </property> <addaction name="actionViewInstanceFolder"/> + <addaction name="actionViewLauncherRootFolder"/> <addaction name="actionViewCentralModsFolder"/> </widget> <widget class="QMenu" name="accountsMenu"> @@ -541,6 +542,18 @@ <string>Open the instance folder in a file browser.</string> </property> </action> + <action name="actionViewLauncherRootFolder"> + <property name="icon"> + <iconset theme="viewfolder"> + <normaloff>.</normaloff>.</iconset> + </property> + <property name="text"> + <string>&View Launcher Root Folder</string> + </property> + <property name="toolTip"> + <string>Open the launcher's root folder in a file browser.</string> + </property> + </action> <action name="actionViewCentralModsFolder"> <property name="icon"> <iconset theme="centralmods"> |