summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-04 13:22:29 -0500
committerGitHub <noreply@github.com>2019-12-04 13:22:29 -0500
commitb209a8e47f866a129c53cef43539e96ab8722405 (patch)
tree98f8eed294d4757ed5885ed20dc166421f3b3197 /src/mainwindow.cpp
parent00adf2b551f9b4b19d588dbfa4c9223597f8b95b (diff)
parentdd6f0fed1085682f56d2815ff885a5ab58058a0b (diff)
Merge pull request #919 from isanae/explore-stylesheets
Explore stylesheets
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 3af0f30c..c365fb6b 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -4302,6 +4302,11 @@ void MainWindow::openPluginsFolder()
shell::Explore(pluginsPath);
}
+void MainWindow::openStylesheetsFolder()
+{
+ QString ssPath = QCoreApplication::applicationDirPath() + "/" + ToQString(AppConfig::stylesheetsPath());
+ shell::Explore(ssPath);
+}
void MainWindow::openProfileFolder()
{
@@ -4519,33 +4524,25 @@ static void addMenuAsPushButton(QMenu *menu, QMenu *subMenu)
QMenu *MainWindow::openFolderMenu()
{
-
QMenu *FolderMenu = new QMenu(this);
FolderMenu->addAction(tr("Open Game folder"), this, SLOT(openGameFolder()));
-
FolderMenu->addAction(tr("Open MyGames folder"), this, SLOT(openMyGamesFolder()));
-
FolderMenu->addAction(tr("Open INIs folder"), this, SLOT(openIniFolder()));
FolderMenu->addSeparator();
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()));
+ FolderMenu->addAction(tr("Open Logs folder"), this, SLOT(openLogsFolder()));
FolderMenu->addSeparator();
FolderMenu->addAction(tr("Open MO2 Install folder"), this, SLOT(openInstallFolder()));
-
FolderMenu->addAction(tr("Open MO2 Plugins folder"), this, SLOT(openPluginsFolder()));
-
- FolderMenu->addAction(tr("Open MO2 Logs folder"), this, SLOT(openLogsFolder()));
-
+ FolderMenu->addAction(tr("Open MO2 Stylesheets folder"), this, SLOT(openStylesheetsFolder()));
return FolderMenu;
}