summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-05-20 23:02:50 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-05-20 23:02:50 +0200
commit4b66c6c1ef52a68cbca752be69fc57b47a25104c (patch)
tree96b22578df417c400601b50fb75c9a35d4cbdfe0 /src/mainwindow.cpp
parent08f35d6519dd7f74b78955b693dec2085b05f8c2 (diff)
Added "Open Plugins folder" option to Open folder menu.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 4d1a3b03..a428d5b3 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -3155,6 +3155,13 @@ void MainWindow::openInstallFolder()
::ShellExecuteW(nullptr, L"explore", ToWString(qApp->applicationDirPath()).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
}
+void MainWindow::openPluginsFolder()
+{
+ QString pluginsPath = QCoreApplication::applicationDirPath() + "/" + ToQString(AppConfig::pluginPath());
+ ::ShellExecuteW(nullptr, L"explore", ToWString(pluginsPath).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
+}
+
+
void MainWindow::openProfileFolder()
{
::ShellExecuteW(nullptr, L"explore", ToWString(m_OrganizerCore.currentProfile()->absolutePath()).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
@@ -3366,15 +3373,9 @@ QMenu *MainWindow::openFolderMenu()
FolderMenu->addAction(tr("Open MO2 Install folder"), this, SLOT(openInstallFolder()));
- FolderMenu->addAction(tr("Open MO2 Logs folder"), this, SLOT(openLogsFolder()));
-
-
-
-
-
-
-
+ FolderMenu->addAction(tr("Open MO2 Plugins folder"), this, SLOT(openPluginsFolder()));
+ FolderMenu->addAction(tr("Open MO2 Logs folder"), this, SLOT(openLogsFolder()));
return FolderMenu;