From 088818bb32812f0308cf80c32a00bbb160974542 Mon Sep 17 00:00:00 2001 From: Odotocodot <48138990+Odotocodot@users.noreply.github.com> Date: Sun, 9 Jul 2023 15:54:32 +0100 Subject: [PATCH] Move delegate into EventHandler.cs #2216 --- Flow.Launcher.Plugin/EventHandler.cs | 18 ++++++++++++++++ .../VisibilityChangedEventHandler.cs | 21 ------------------- 2 files changed, 18 insertions(+), 21 deletions(-) delete mode 100644 Flow.Launcher.Plugin/VisibilityChangedEventHandler.cs 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; } - } -}