From f38229bbcc117d96aff8b6fdafec2d77d4ffeec2 Mon Sep 17 00:00:00 2001 From: Dorus Date: Fri, 10 May 2024 18:46:52 +0200 Subject: [PATCH] fix: undo invalid refactoring --- Yafc/Windows/ProjectPageSettingsPanel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yafc/Windows/ProjectPageSettingsPanel.cs b/Yafc/Windows/ProjectPageSettingsPanel.cs index f2274c63..aed6fac5 100644 --- a/Yafc/Windows/ProjectPageSettingsPanel.cs +++ b/Yafc/Windows/ProjectPageSettingsPanel.cs @@ -205,7 +205,7 @@ public static void LoadProjectPageFromClipboard() { deflateStream.CopyTo(ms); byte[] bytes = ms.GetBuffer(); int index = 0; - if (DataUtils.ReadLine(bytes, ref index) is not "YAFC" or not "ProjectPage") { + if (DataUtils.ReadLine(bytes, ref index) != "YAFC" || DataUtils.ReadLine(bytes, ref index) != "ProjectPage") { throw new InvalidDataException(); }