GH-589 GH-842 GH-901 GH-1117 allow mass-enabling/disabling of mods
This commit is contained in:
parent
6ec2652b45
commit
b76d4573cd
5 changed files with 49 additions and 1 deletions
|
@ -165,6 +165,18 @@ void ModFolderPage::on_addModBtn_clicked()
|
|||
}
|
||||
}
|
||||
|
||||
void ModFolderPage::on_enableModBtn_clicked()
|
||||
{
|
||||
auto selection = m_filterModel->mapSelectionToSource(ui->modTreeView->selectionModel()->selection());
|
||||
m_mods->enableMods(selection.indexes(), true);
|
||||
}
|
||||
|
||||
void ModFolderPage::on_disableModBtn_clicked()
|
||||
{
|
||||
auto selection = m_filterModel->mapSelectionToSource(ui->modTreeView->selectionModel()->selection());
|
||||
m_mods->enableMods(selection.indexes(), false);
|
||||
}
|
||||
|
||||
void ModFolderPage::on_rmModBtn_clicked()
|
||||
{
|
||||
auto selection = m_filterModel->mapSelectionToSource(ui->modTreeView->selectionModel()->selection());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue