♻️ Refactor document selector and cache management logic
This commit is contained in:
5
main.go
5
main.go
@@ -64,7 +64,6 @@ func main() {
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
// Create a new window with the necessary options.
|
||||
// 'Title' is the title of the window.
|
||||
// 'Mac' options tailor the window when running on macOS.
|
||||
@@ -92,6 +91,10 @@ func main() {
|
||||
mainWindow.Center()
|
||||
window = mainWindow
|
||||
|
||||
// 获取系统服务并设置应用引用
|
||||
systemService := serviceManager.GetSystemService()
|
||||
systemService.SetAppReferences(app)
|
||||
|
||||
// 获取托盘服务并设置应用引用
|
||||
trayService := serviceManager.GetTrayService()
|
||||
trayService.SetAppReferences(app, mainWindow)
|
||||
|
||||
Reference in New Issue
Block a user