From 79151fa893fe343bbbd6422994d5f1dda17d2b06 Mon Sep 17 00:00:00 2001 From: Kilian von Pflugk Date: Tue, 5 Nov 2024 20:04:27 +0100 Subject: [PATCH] fix: windows can't delete file because filestream is still open --- IntroSkipper/Plugin.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/IntroSkipper/Plugin.cs b/IntroSkipper/Plugin.cs index be31be5..17b030c 100644 --- a/IntroSkipper/Plugin.cs +++ b/IntroSkipper/Plugin.cs @@ -111,6 +111,7 @@ public class Plugin : BasePlugin, IHasWebPages if (serializer.Deserialize(reader) is PluginConfiguration oldConfig) { Instance.UpdateConfiguration(oldConfig); + fileStream.Close(); File.Delete(oldConfigFile); } }