summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp7
1 files changed, 7 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()));