Skip to content

Commit

Permalink
fix: focus and show when already running
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJk committed Oct 4, 2024
1 parent bc9aaba commit 9729295
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/app/electron.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit 9729295

Please sign in to comment.