fix: removing mods with their metadata as well
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
9db27c6acc
commit
43a7af3f44
@ -135,6 +135,16 @@ bool ModFolderPage::onSelectionChanged(const QModelIndex& current, const QModelI
|
||||
return true;
|
||||
}
|
||||
|
||||
void ModFolderPage::removeItem()
|
||||
{
|
||||
|
||||
if (!m_controlsEnabled)
|
||||
return;
|
||||
|
||||
auto selection = m_filterModel->mapSelectionToSource(ui->treeView->selectionModel()->selection());
|
||||
m_model->deleteMods(selection.indexes());
|
||||
}
|
||||
|
||||
void ModFolderPage::installMods()
|
||||
{
|
||||
if (!m_controlsEnabled)
|
||||
|
@ -59,6 +59,8 @@ class ModFolderPage : public ExternalResourcesPage {
|
||||
bool onSelectionChanged(const QModelIndex& current, const QModelIndex& previous) override;
|
||||
|
||||
private slots:
|
||||
void removeItem() override;
|
||||
|
||||
void installMods();
|
||||
void updateMods();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user