From ca66c839aa5715549e6b06a425860b616bd3beff Mon Sep 17 00:00:00 2001 From: SherkeyXD <57581480+SherkeyXD@users.noreply.github.com> Date: Wed, 21 Aug 2024 19:12:02 +0800 Subject: [PATCH] chore: fix WPF Warning --- src/MaaWpfGui/Helper/AppIcon.cs | 2 +- src/MaaWpfGui/WineCompat/FontConfig/Types.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MaaWpfGui/Helper/AppIcon.cs b/src/MaaWpfGui/Helper/AppIcon.cs index 065e7b1d97..2c424b012c 100644 --- a/src/MaaWpfGui/Helper/AppIcon.cs +++ b/src/MaaWpfGui/Helper/AppIcon.cs @@ -43,7 +43,7 @@ public class AppIcon catch (Exception) { throw; - return new BitmapImage(); + // return new BitmapImage(); } } diff --git a/src/MaaWpfGui/WineCompat/FontConfig/Types.cs b/src/MaaWpfGui/WineCompat/FontConfig/Types.cs index a8ca66c501..879ac07a1d 100644 --- a/src/MaaWpfGui/WineCompat/FontConfig/Types.cs +++ b/src/MaaWpfGui/WineCompat/FontConfig/Types.cs @@ -2,6 +2,7 @@ // MaaWpfGui - A part of the MAA project // Copyright (C) 2021 MistEO and Contributors // +#pragma warning disable CS0649 using System; using System.Runtime.InteropServices;