diff options
| -rw-r--r-- | src/mainwindow.cpp | 7 | ||||
| -rw-r--r-- | src/mainwindow.h | 1 |
2 files changed, 8 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;
}
diff --git a/src/mainwindow.h b/src/mainwindow.h index c9ba170c..a17b706d 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -483,6 +483,7 @@ private slots: void enableVisibleMods();
void disableVisibleMods();
void exportModListCSV();
+ void openInstanceFolder();
void startExeAction();
|
