From 93ccdee54add655af0384af0a436f3f01924922a Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 22 Mar 2025 13:40:33 +0800 Subject: [PATCH] Improve comments --- Flow.Launcher/MainWindow.xaml.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index adbb6f329..c2b35ed12 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -219,15 +219,15 @@ namespace Flow.Launcher } }; - // ✅ QueryTextBox.Text 변경 감지 (글자 수 1 이상일 때만 동작하도록 수정) + // QueryTextBox.Text change detection (modified to only work when character count is 1 or higher) QueryTextBox.TextChanged += (sender, e) => UpdateClockPanelVisibility(); - // ✅ ContextMenu.Visibility 변경 감지 + // Detecting ContextMenu.Visibility changes DependencyPropertyDescriptor .FromProperty(VisibilityProperty, typeof(ContextMenu)) .AddValueChanged(ContextMenu, (s, e) => UpdateClockPanelVisibility()); - // ✅ History.Visibility 변경 감지 + // Detect History.Visibility changes DependencyPropertyDescriptor .FromProperty(VisibilityProperty, typeof(StackPanel)) // History는 StackPanel이라고 가정 .AddValueChanged(History, (s, e) => UpdateClockPanelVisibility()); @@ -242,6 +242,7 @@ namespace Flow.Launcher e.Cancel = true; await PluginManager.DisposePluginsAsync(); Notification.Uninstall(); + // After plugins are all disposed, we can close the main window _canClose = true; Close(); }