From 00b126ce2ea1330f5e1d9ddfa9b3beec5295efd2 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Mon, 21 Oct 2024 23:22:01 +0800 Subject: [PATCH] Remove unused hotkey and notifier imports --- Wox/main.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Wox/main.go b/Wox/main.go index 866e5419..140840fd 100644 --- a/Wox/main.go +++ b/Wox/main.go @@ -14,8 +14,6 @@ import ( "wox/setting" "wox/ui" "wox/util" - "wox/util/hotkey" - "wox/util/notifier" "golang.design/x/hotkey/mainthread" @@ -127,13 +125,6 @@ func main() { util.GetLogger().Error(ctx, fmt.Sprintf("failed to register query hotkey: %s", registerQueryHotkeyErr.Error())) } } - (&hotkey.Hotkey{}).Register(ctx, "ctrl+ctrl", func() { - i := 1 - for range time.NewTicker(time.Millisecond * 100).C { - notifier.Notify(fmt.Sprintf("Wox is running, Wox is running, Wox is running, Wox is running, Wox is running, Wox is running, Wox is running, Wox is running, Wox is running, Wox is running, Wox is running, %d", i)) - i++ - } - }) if util.IsProd() { util.Go(ctx, "start ui", func() {