From 5a0a05e62fb10773806836dc0298b18e40333ce9 Mon Sep 17 00:00:00 2001 From: Space Time Date: Tue, 10 Dec 2024 22:43:01 +0800 Subject: [PATCH] =?UTF-8?q?1.1.3=20->=201.1.4=20=E7=AC=AC46=E6=AC=A1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Utils/NginxStoppedCleaner.cs | 1 + Wins/MainWin.xaml.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Utils/NginxStoppedCleaner.cs b/Utils/NginxStoppedCleaner.cs index dc33356..6d57802 100644 --- a/Utils/NginxStoppedCleaner.cs +++ b/Utils/NginxStoppedCleaner.cs @@ -31,6 +31,7 @@ namespace Sheas_Cealer.Utils try { certStore.Remove(storedCert); + break; } catch { } diff --git a/Wins/MainWin.xaml.cs b/Wins/MainWin.xaml.cs index 9e19e73..d9b1faf 100644 --- a/Wins/MainWin.xaml.cs +++ b/Wins/MainWin.xaml.cs @@ -363,7 +363,7 @@ public partial class MainWin : Window private void EditHostButton_Click(object sender, RoutedEventArgs e) { - Button? senderButton = sender as Button; + Button senderButton = (Button)sender; string cealHostPath = senderButton == EditLocalHostButton ? MainConst.LocalHostPath : MainConst.UpstreamHostPath; @@ -375,7 +375,7 @@ public partial class MainWin : Window } private void EditConfButton_Click(object sender, RoutedEventArgs e) { - Button? senderButton = sender as Button; + Button senderButton = (Button)sender; string confPath; if (senderButton == EditHostsConfButton)