summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp7
-rw-r--r--src/mainwindow.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index f2a17c17..17db79d6 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -3272,6 +3272,11 @@ void MainWindow::openDownloadsFolder()
::ShellExecuteW(nullptr, L"explore", ToWString(m_OrganizerCore.settings().getDownloadDirectory()).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
}
+void MainWindow::openModsFolder()
+{
+ ::ShellExecuteW(nullptr, L"explore", ToWString(m_OrganizerCore.settings().getModDirectory()).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
+}
+
void MainWindow::openGameFolder()
{
::ShellExecuteW(nullptr, L"explore", ToWString(m_OrganizerCore.managedGame()->gameDirectory().absolutePath()).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
@@ -3465,6 +3470,8 @@ QMenu *MainWindow::openFolderMenu()
FolderMenu->addAction(tr("Open Instance folder"), this, SLOT(openInstanceFolder()));
+ FolderMenu->addAction(tr("Open Mods folder"), this, SLOT(openModsFolder()));
+
FolderMenu->addAction(tr("Open Profile folder"), this, SLOT(openProfileFolder()));
FolderMenu->addAction(tr("Open Downloads folder"), this, SLOT(openDownloadsFolder()));
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 773bf298..6cf83301 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -502,6 +502,7 @@ private slots:
void openInstallFolder();
void openPluginsFolder();
void openDownloadsFolder();
+ void openModsFolder();
void openProfileFolder();
void openGameFolder();
void openMyGamesFolder();