summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-07-21 20:09:25 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-07-21 20:09:25 +0200
commitcc63717060229ce40279f4ac1edd0907110fee87 (patch)
tree848fa5a76e30c04a8da23f0e5f7a1d29a61b92e0 /src/mainwindow.cpp
parent8f28e0af36d6246f1230a8aa296cfd5485b34242 (diff)
Added "Open Mods folder" to "Open Folder" context menu.
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()));