diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-02-14 20:08:31 +0100 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-02-14 20:08:31 +0100 |
| commit | dd8f73178cab02a03320b27a36c77ff5cb77e7ad (patch) | |
| tree | 62d0f77441fe25ff134737b6d702967cf73b4098 /src/mainwindow.cpp | |
| parent | 3f5f56397bdd29fe8266bc292058c237c9a745a5 (diff) | |
Small changes to make the modlist context menu more organized.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e578bf5c..abad054b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -3246,15 +3246,22 @@ QMenu *MainWindow::modListContextMenu() menu->addSeparator();
- menu->addAction(tr("Open Instance folder"), this, SLOT(openInstanceFolder()));
+ QMenu *openSubMenu = new QMenu(this);
- menu->addAction(tr("Open Profile folder"), this, SLOT(openProfileFolder()));
- menu->addAction(tr("Open Downloads folder"), this, SLOT(openDownloadsFolder()));
+ openSubMenu->addAction(tr("Open Instance folder"), this, SLOT(openInstanceFolder()));
- menu->addAction(tr("Open Game folder"), this, SLOT(openGameFolder()));
+ openSubMenu->addAction(tr("Open Profile folder"), this, SLOT(openProfileFolder()));
- menu->addAction(tr("Open MyGames folder"), this, SLOT(openMyGamesFolder()));
+ openSubMenu->addAction(tr("Open Downloads folder"), this, SLOT(openDownloadsFolder()));
+
+ openSubMenu->addAction(tr("Open Game folder"), this, SLOT(openGameFolder()));
+
+ openSubMenu->addAction(tr("Open MyGames folder"), this, SLOT(openMyGamesFolder()));
+
+ openSubMenu->setTitle(tr("Open Folder..."));
+
+ menu->addMenu(openSubMenu);
return menu;
}
@@ -3321,6 +3328,9 @@ void MainWindow::on_modList_customContextMenuRequested(const QPoint &pos) menu->addAction(tr("Rename Mod..."), this, SLOT(renameMod_clicked()));
menu->addAction(tr("Remove Mod..."), this, SLOT(removeMod_clicked()));
menu->addAction(tr("Reinstall Mod"), this, SLOT(reinstallMod_clicked()));
+
+ menu->addSeparator();
+
if (info->getNexusID() > 0) {
switch (info->endorsedState()) {
case ModInfo::ENDORSED_TRUE: {
@@ -3341,6 +3351,8 @@ void MainWindow::on_modList_customContextMenuRequested(const QPoint &pos) }
}
+ menu->addSeparator();
+
std::vector<ModInfo::EFlag> flags = info->getFlags();
if (std::find(flags.begin(), flags.end(), ModInfo::FLAG_INVALID) != flags.end()) {
menu->addAction(tr("Ignore missing data"), this, SLOT(ignoreMissingData_clicked()));
|
