diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-10-31 17:05:05 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-10-31 17:05:05 -0500 |
| commit | 5de173ba1ae9531aaca0c0f022a2b0dae1c09250 (patch) | |
| tree | 6f9e415fd63d2aac34a219e18d7505333d921ebd /src/mainwindow.cpp | |
| parent | eb26120332433c73716531e6eaae798aeae33c1b (diff) | |
Add send to top/bottom options for the plugin list
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 24def4ef..d279da91 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -4341,6 +4341,16 @@ void MainWindow::disableSelectedPlugins_clicked() m_OrganizerCore.pluginList()->disableSelected(ui->espList->selectionModel());
}
+void MainWindow::sendSelectedPluginsToTop_clicked()
+{
+ m_OrganizerCore.pluginList()->sendToTop(ui->espList->selectionModel());
+}
+
+void MainWindow::sendSelectedPluginsToBottom_clicked()
+{
+ m_OrganizerCore.pluginList()->sendToBottom(ui->espList->selectionModel());
+}
+
void MainWindow::enableSelectedMods_clicked()
{
@@ -4966,6 +4976,11 @@ void MainWindow::on_espList_customContextMenuRequested(const QPoint &pos) menu.addAction(tr("Enable all"), m_OrganizerCore.pluginList(), SLOT(enableAll()));
menu.addAction(tr("Disable all"), m_OrganizerCore.pluginList(), SLOT(disableAll()));
+ menu.addSeparator();
+
+ menu.addAction(tr("Send to top"), this, SLOT(sendSelectedPluginsToTop_clicked()));
+ menu.addAction(tr("Send to bottom"), this, SLOT(sendSelectedPluginsToBottom_clicked()));
+
QItemSelection currentSelection = ui->espList->selectionModel()->selection();
bool hasLocked = false;
bool hasUnlocked = false;
|
