Removed update disabled warning
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
8f5bb982cd
commit
f7f7bc6865
5 changed files with 17 additions and 17 deletions
|
@ -196,7 +196,10 @@ Task* ModFolderModel::createParseTask(Resource& resource)
|
|||
bool ModFolderModel::uninstallMod(const QString& filename, bool preserve_metadata)
|
||||
{
|
||||
for (auto mod : allMods()) {
|
||||
if (mod->fileinfo().fileName() == filename) {
|
||||
auto modfilename = mod->fileinfo().fileName();
|
||||
if (!mod->enabled() && modfilename.endsWith(".disabled"))
|
||||
modfilename.chop(9);
|
||||
if (modfilename == filename) {
|
||||
auto index_dir = indexDir();
|
||||
mod->destroy(index_dir, preserve_metadata, false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue