uninstalling a mod should forget if its disabled

This commit is contained in:
matcool 2024-02-13 10:53:23 -03:00
parent e59fef5f2b
commit a3a7562ee0

View file

@ -440,6 +440,9 @@ Result<> Mod::Impl::uninstall(bool deleteSaveData) {
ModRequestedAction::UninstallWithSaveData :
ModRequestedAction::Uninstall;
// Make loader forget the mod should be disabled
Mod::get()->getSaveContainer().try_erase("should-load-" + m_metadata.getID());
std::error_code ec;
ghc::filesystem::remove(m_metadata.getPath(), ec);
if (ec) {