From fff2c53f1550434fb37c7762943c7d7c6d476df2 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Fri, 20 Jan 2023 16:28:36 +0100 Subject: [PATCH] Moved Mac edit menu --- internal/app/app.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/app/app.go b/internal/app/app.go index 6c09e8b..94beb5a 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -41,14 +41,14 @@ func (a *App) Menu() *menu.Menu { wailsRuntime.EventsEmit(a.ctx, "OpenHostsModal") }) + if runtime.GOOS == "darwin" { + appMenu.Append(menu.EditMenu()) + } + helpMenu := appMenu.AddSubmenu("Help") helpMenu.AddText("User guide", nil, func(cd *menu.CallbackData) { wailsRuntime.BrowserOpenURL(a.ctx, "") }) - if runtime.GOOS == "darwin" { - appMenu.Append(menu.EditMenu()) - } - return appMenu }