Remove unused hotkey and notifier imports

This commit is contained in:
qianlifeng 2024-10-21 23:22:01 +08:00
parent 2fa41990e4
commit 00b126ce2e
No known key found for this signature in database
1 changed files with 0 additions and 9 deletions

View File

@ -14,8 +14,6 @@ import (
"wox/setting" "wox/setting"
"wox/ui" "wox/ui"
"wox/util" "wox/util"
"wox/util/hotkey"
"wox/util/notifier"
"golang.design/x/hotkey/mainthread" "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())) 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() { if util.IsProd() {
util.Go(ctx, "start ui", func() { util.Go(ctx, "start ui", func() {