diff --git a/.gitignore b/.gitignore index 5b245c4..cc06e06 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ build/bin frontend/wailsjs frontend/public/docs +*-res.syso # From the vue template of vite # diff --git a/README.md b/README.md index 9ab8d82..eb1cb6c 100644 --- a/README.md +++ b/README.md @@ -13,18 +13,13 @@ Prepare and install environment for development? ## Technologies -| Technology | Role | Sources | -| :--------- | :--------------------------------------------------- | :----------------------------- | -| Go | Backend programming language | https://pkg.go.dev/std | -| TypeScript | Frontend programming language | https://typescriptlang.org | -| Vite | Next Generation Frontend Tooling | https://vitejs.dev/ | -| Vue 3 | Progressive JavaScript Framework | https://vuejs.org/ | -| Wails | Build cross-platform desktop applications using Go | https://wails.io/ | -| UPX | Ultimate packer for executables | https://upx.github.io/ | -| Swaggo | Converts Go annotations to Swagger Documentation 2.0 | https://github.com/swaggo/swag | - -## Design Pattern Summary - -| Pattern | Role | Packages | -| :-------- | :------------------------------------------- | :-------------- | -| Singleton | Maintains read-only state and global objects | app, i18n, tray | +| Technology | Role | Sources | +| :--------- | :--------------------------------------------------- | :------------------------------------ | +| Go | Backend programming language | https://pkg.go.dev/std | +| TypeScript | Frontend programming language | https://typescriptlang.org | +| Vite | Next Generation Frontend Tooling | https://vitejs.dev/ | +| Vue 3 | Progressive JavaScript Framework | https://vuejs.org/ | +| Wails | Build cross-platform desktop applications using Go | https://wails.io/ | +| UPX | Ultimate packer for executables | https://upx.github.io/ | +| Swaggo | Converts Go annotations to Swagger Documentation 2.0 | https://github.com/swaggo/swag | +| Systray | A cross platfrom system tray using Go | https://github.com/getlantern/systray | diff --git a/backend/tray/tray.go b/backend/tray/tray.go index 9e943e6..32719f4 100644 --- a/backend/tray/tray.go +++ b/backend/tray/tray.go @@ -169,7 +169,6 @@ func (t *tray) onReady() { } if dialog == "Yes" { // when default button => "Yes" is clicked systray.Quit() - runtime.Quit(t.wailsCtx) } }, }) @@ -182,4 +181,6 @@ func (t *tray) onQuit() { t.displayLanguage.StopWatch() t.colorTheme.StopWatch() t.quit.StopWatch() + + runtime.Quit(t.wailsCtx) }