mirror of https://github.com/Wox-launcher/Wox
Remove unused hotkey and notifier imports
This commit is contained in:
parent
2fa41990e4
commit
00b126ce2e
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue