diff --git a/Flow.Launcher.Plugin/EventHandler.cs b/Flow.Launcher.Plugin/EventHandler.cs index 009e1721c..78e4bd4ed 100644 --- a/Flow.Launcher.Plugin/EventHandler.cs +++ b/Flow.Launcher.Plugin/EventHandler.cs @@ -32,6 +32,24 @@ namespace Flow.Launcher.Plugin /// return true to continue handling, return false to intercept system handling public delegate bool FlowLauncherGlobalKeyboardEventHandler(int keyevent, int vkcode, SpecialKeyState state); + /// + /// A delegate for when the visibility is changed + /// + /// + /// + public delegate void VisibilityChangedEventHandler(object sender, VisibilityChangedEventArgs args); + + /// + /// The event args for + /// + public class VisibilityChangedEventArgs : EventArgs + { + /// + /// if the main window has become visible + /// + public bool IsVisible { get; init; } + } + /// /// Arguments container for the Key Down event /// diff --git a/Flow.Launcher.Plugin/VisibilityChangedEventHandler.cs b/Flow.Launcher.Plugin/VisibilityChangedEventHandler.cs deleted file mode 100644 index 21c8ee53e..000000000 --- a/Flow.Launcher.Plugin/VisibilityChangedEventHandler.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; - -namespace Flow.Launcher.Plugin -{ - /// - /// A delegate for when the visibility is changed - /// - /// - /// - public delegate void VisibilityChangedEventHandler(object sender, VisibilityChangedEventArgs args); - /// - /// The event args for - /// - public class VisibilityChangedEventArgs : EventArgs - { - /// - /// if the main window has become visible - /// - public bool IsVisible { get; init; } - } -}