From 0206273200e64c9c6bd21f54c3ef923844957d2b Mon Sep 17 00:00:00 2001 From: CJK_mkp <113243675+CJKmkp@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:21:26 +0800 Subject: [PATCH] =?UTF-8?q?improve:Ci=E7=82=B9=E5=90=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ink Canvas/Windows/RandWindow.xaml.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Ink Canvas/Windows/RandWindow.xaml.cs b/Ink Canvas/Windows/RandWindow.xaml.cs index 9a895869..262e67da 100644 --- a/Ink Canvas/Windows/RandWindow.xaml.cs +++ b/Ink Canvas/Windows/RandWindow.xaml.cs @@ -207,14 +207,15 @@ namespace Ink_Canvas { Close(); } - private bool isIslandCallerFirstClick = true; + // 将 isIslandCallerFirstClick 设为静态字段,实现全局记录 + private static bool isIslandCallerFirstClick = true; private void BorderBtnIslandCaller_MouseUp(object sender, MouseButtonEventArgs e) { if (isIslandCallerFirstClick) { MessageBox.Show( - "使用ClassIsland点名功能,请确保已安装ClassIsland和Island caller插件。\n" + + "首次使用ClassIsland点名功能,请确保已安装ClassIsland和Island caller插件。\n" + "如未安装,请前往官网下载并安装后再使用。如果安装请再次点击此按钮。", "提示", MessageBoxButton.OK, MessageBoxImage.Information); isIslandCallerFirstClick = false;