Added "Open instance folder" entry to the small options list menù.

This commit is contained in:
Al12rs
2018-01-19 12:46:07 +01:00
parent 95b258c0df
commit 3fdb00e0c9
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -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;
}
+1
View File
@@ -483,6 +483,7 @@ private slots:
void enableVisibleMods();
void disableVisibleMods();
void exportModListCSV();
void openInstanceFolder();
void startExeAction();