This commit is contained in:
2025-09-13 16:09:51 +08:00
parent 501af800ce
commit b29fca1cdb
2 changed files with 12 additions and 3 deletions
@@ -30,7 +30,7 @@ namespace Ink_Canvas
#region #region
public bool IsEnabled => _interceptor != null && _settings != null && _settings.IsEnabled; public bool IsEnabled => _interceptor != null && _settings != null && _settings.IsEnabled;
public bool IsRunning => _interceptor != null && _isInitialized; public bool IsRunning => _interceptor != null && _interceptor.IsRunning;
#endregion #endregion
@@ -170,6 +170,12 @@ namespace Ink_Canvas.Helpers
#endregion #endregion
#region
public bool IsRunning => _isRunning;
#endregion
#region #region
public event EventHandler<WindowInterceptedEventArgs> WindowIntercepted; public event EventHandler<WindowInterceptedEventArgs> WindowIntercepted;
@@ -200,8 +206,8 @@ namespace Ink_Canvas.Helpers
{ {
Type = InterceptType.SeewoWhiteboard3Floating, Type = InterceptType.SeewoWhiteboard3Floating,
ProcessName = "EasiNote3", ProcessName = "EasiNote3",
WindowTitlePattern = "", WindowTitlePattern = "希沃白板",
ClassNamePattern = "", ClassNamePattern = "EasiNote3",
IsEnabled = true, IsEnabled = true,
RequiresAdmin = false, RequiresAdmin = false,
Description = "希沃白板3 桌面悬浮窗" Description = "希沃白板3 桌面悬浮窗"
@@ -388,6 +394,9 @@ namespace Ink_Canvas.Helpers
_isRunning = false; _isRunning = false;
_scanTimer.Change(Timeout.Infinite, Timeout.Infinite); _scanTimer.Change(Timeout.Infinite, Timeout.Infinite);
// 恢复所有被拦截的窗口
RestoreAllWindows();
} }
/// <summary> /// <summary>