GH-589 GH-842 GH-901 GH-1117 allow mass-enabling/disabling of mods

This commit is contained in:
Petr Mrázek
2016-08-04 23:16:03 +02:00
parent 6ec2652b45
commit b76d4573cd
5 changed files with 49 additions and 1 deletions

View File

@ -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());