Skip to content

Commit

Permalink
Merge #3955 Fix uninstallation of manually deleted files and directories
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Dec 14, 2023
2 parents 7bc8aec + f2279dd commit 46a97d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
- [GUI] Protect upgradeable mods from being displayed as uninstalled (#3944 by: HebaruSan)
- [GUI] Restore conflict highlights in changeset (#3948 by: HebaruSan)
- [GUI] Conflict highlight for selected row (#3951 by: HebaruSan)
- [Core] Fix uninstallation of manually deleted files and directories (#3955 by: HebaruSan)

## v1.34.0 (Minkowski)

Expand Down
8 changes: 8 additions & 0 deletions Core/ModuleInstaller.cs
Expand Up @@ -771,6 +771,14 @@ private void Uninstall(string identifier, ref HashSet<string> possibleConfigOnly
file_transaction.Delete(absPath);
}
}
catch (FileNotFoundException exc)
{
log.Debug("Ignoring missing file while deleting", exc);
}
catch (DirectoryNotFoundException exc)
{
log.Debug("Ignoring missing directory while deleting", exc);
}
catch (IOException)
{
// "The specified file is in use."
Expand Down

0 comments on commit 46a97d3

Please sign in to comment.