From 9729295ab6c6263619c8d8e79d40b9133f1fb617 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Fri, 4 Oct 2024 15:38:57 +0200 Subject: [PATCH] fix: focus and show when already running --- cmd/app/electron.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/app/electron.go b/cmd/app/electron.go index 98a1ef3..e34c239 100644 --- a/cmd/app/electron.go +++ b/cmd/app/electron.go @@ -53,6 +53,7 @@ func init() { api.GET("/focusElectron", func(c echo.Context) error { if mainWindow != nil { go mainWindow.Show() + go mainWindow.Focus() } return c.NoContent(http.StatusOK) })