diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-01-19 12:46:07 +0100 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-01-19 12:46:07 +0100 |
| commit | 3fdb00e0c9fc01cbbe158cdfd2d499ca97865297 (patch) | |
| tree | 2431650777e2a187c3484c9f8840adde1ad45de7 | |
| parent | 95b258c0df3425632bd48105793aa38a273f4dae (diff) | |
Added "Open instance folder" entry to the small options list menĂ¹.
| -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();
|
