diff --git a/NppGZipFileViewer/Main.cs b/NppGZipFileViewer/Main.cs index 53e9d43..0bad099 100644 --- a/NppGZipFileViewer/Main.cs +++ b/NppGZipFileViewer/Main.cs @@ -139,7 +139,11 @@ private static void TryDecompress(ScNotification notification) using var gzContentStream = NppGZipFileViewerHelper.GetContentStream(notification, path); - + + if (gzContentStream.Length == 0) + if (Preferences.HasGZipSuffix(path)) + fileTracker.Include(notification.Header.IdFrom, path); + else return; try { using var decodedContentStream = NppGZipFileViewerHelper.Decode(gzContentStream); diff --git a/NppGZipFileViewer/NppGZipFileViewer.csproj b/NppGZipFileViewer/NppGZipFileViewer.csproj index bf77cc9..b15dcb3 100644 --- a/NppGZipFileViewer/NppGZipFileViewer.csproj +++ b/NppGZipFileViewer/NppGZipFileViewer.csproj @@ -10,7 +10,7 @@ NppGZipFileViewer bin\Debug\ latest - v4.0 + v4.8 @@ -74,6 +74,7 @@ AnyCPU latest prompt + false bin\Release\ @@ -84,6 +85,7 @@ AnyCPU latest prompt + false diff --git a/NppGZipFileViewer/Properties/Resources.Designer.cs b/NppGZipFileViewer/Properties/Resources.Designer.cs index 9f10b1a..0fb32bc 100644 --- a/NppGZipFileViewer/Properties/Resources.Designer.cs +++ b/NppGZipFileViewer/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace NppGZipFileViewer.Properties { // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources {