🎨 Optimize code

This commit is contained in:
2025-06-22 15:08:38 +08:00
parent 35c89e086e
commit eb9b037f8e
22 changed files with 937 additions and 1906 deletions

View File

@@ -73,7 +73,6 @@ func main() {
// 'Mac' options tailor the window when running on macOS.
// 'BackgroundColour' is the background colour of the window.
// 'URL' is the URL that will be loaded into the webview.
log.Println("Creating main window...")
mainWindow := app.NewWebviewWindowWithOptions(application.WebviewWindowOptions{
Title: "voidraft",
Width: 700,
@@ -106,7 +105,6 @@ func main() {
hotkeyService := serviceManager.GetHotkeyService()
err := hotkeyService.Initialize(app)
if err != nil {
log.Printf("Failed to initialize hotkey service: %v\n", err)
panic(err)
}