summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2018-01-22 14:06:36 -0600
committerGitHub <noreply@github.com>2018-01-22 14:06:36 -0600
commit8c34131bb84aa47dc2bfa8ced1a130cacabba725 (patch)
tree2431650777e2a187c3484c9f8840adde1ad45de7 /src/mainwindow.cpp
parent5d5a7b851168285dd1a67c5d681270d1e68ccd7b (diff)
parent3fdb00e0c9fc01cbbe158cdfd2d499ca97865297 (diff)
Merge pull request #209 from Al12rs/new_vfs_library
Added a delete Instances dialog and various other things.
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 11693568..6648f32e 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2993,6 +2993,11 @@ void MainWindow::disableVisibleMods()
}
}
+void MainWindow::openInstanceFolder()
+{
+ ::ShellExecuteW(nullptr, L"explore", ToWString(m_OrganizerCore.settings().getBaseDirectory()).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
+}
+
void MainWindow::exportModListCSV()
{
SelectionDialog selection(tr("Choose what to export"));
@@ -3071,6 +3076,8 @@ QMenu *MainWindow::modListContextMenu()
menu->addAction(tr("Refresh"), &m_OrganizerCore, SLOT(profileRefresh()));
menu->addAction(tr("Export to csv..."), this, SLOT(exportModListCSV()));
+
+ menu->addAction(tr("Open Instance folder"), this, SLOT(openInstanceFolder()));
return menu;
}