v2.5.1 sys tray Show init

This commit is contained in:
杨红岩 2023-02-02 15:12:29 +08:00
parent 40fc693934
commit 49aa763646

View File

@ -11,7 +11,6 @@ package cef
import ( import (
"github.com/energye/energy/common" "github.com/energye/energy/common"
"github.com/energye/energy/consts" "github.com/energye/energy/consts"
"github.com/energye/energy/logger"
"github.com/energye/energy/pkgs/notice" "github.com/energye/energy/pkgs/notice"
"github.com/energye/energy/pkgs/systray" "github.com/energye/energy/pkgs/systray"
"github.com/energye/golcl/energy/emfs" "github.com/energye/golcl/energy/emfs"
@ -97,7 +96,6 @@ func (m *SysTray) Show() {
defer m.lock.Unlock() defer m.lock.Unlock()
if m.start == nil { if m.start == nil {
var runLoop = func() { var runLoop = func() {
logger.Info("sys tray ready")
m.start, m.stop = systray.RunWithExternalLoop(m.onReady, m.onExit) m.start, m.stop = systray.RunWithExternalLoop(m.onReady, m.onExit)
m.start() m.start()
} }