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
public bool IsEnabled => _interceptor != null && _settings != null && _settings.IsEnabled;
public bool IsRunning => _interceptor != null && _isInitialized;
public bool IsRunning => _interceptor != null && _interceptor.IsRunning;
#endregion
@@ -170,6 +170,12 @@ namespace Ink_Canvas.Helpers
#endregion
#region
public bool IsRunning => _isRunning;
#endregion
#region
public event EventHandler<WindowInterceptedEventArgs> WindowIntercepted;
@@ -200,8 +206,8 @@ namespace Ink_Canvas.Helpers
{
Type = InterceptType.SeewoWhiteboard3Floating,
ProcessName = "EasiNote3",
WindowTitlePattern = "",
ClassNamePattern = "",
WindowTitlePattern = "希沃白板",
ClassNamePattern = "EasiNote3",
IsEnabled = true,
RequiresAdmin = false,
Description = "希沃白板3 桌面悬浮窗"
@@ -388,6 +394,9 @@ namespace Ink_Canvas.Helpers
_isRunning = false;
_scanTimer.Change(Timeout.Infinite, Timeout.Infinite);
// 恢复所有被拦截的窗口
RestoreAllWindows();
}
/// <summary>