diff --git a/src/app/action_user.go b/src/app/action_user.go index 718b9610..16e81f1b 100644 --- a/src/app/action_user.go +++ b/src/app/action_user.go @@ -308,8 +308,8 @@ func (a *app) DoIgnoreUpdate() { a.ConfigSaveV(a.config()) } -// DoCheckForUpdate checks for available update. -func (a *app) DoCheckForUpdate() { - log.Println("[app] do check for update") +// DoCheckForUpdates checks for available update. +func (a *app) DoCheckForUpdates() { + log.Println("[app] do check for updates") a.checkForUpdatesV(true) } diff --git a/src/app/ui/cpwsarea/wsmap/pmap/panel_status.go b/src/app/ui/cpwsarea/wsmap/pmap/panel_status.go index 5cc70c82..7f3026cc 100644 --- a/src/app/ui/cpwsarea/wsmap/pmap/panel_status.go +++ b/src/app/ui/cpwsarea/wsmap/pmap/panel_status.go @@ -32,7 +32,7 @@ func (p *PaneMap) panelStatusLayoutStatus() (layout w.Layout) { layout = append(layout, w.Tooltip(w.Text("Tile coordinates of the mouse"))) - if tools.IsSelected(tools.TNPick) || (tools.IsSelected(tools.TNDelete) && !tools.Selected().AltBehaviour()) { + if isQuickToolToggled() && !tools.Selected().AltBehaviour() { if hoveredInstance := p.canvasState.HoveredInstance(); hoveredInstance != nil { layout = append(layout, w.Layout{ w.SameLine(), @@ -44,6 +44,10 @@ func (p *PaneMap) panelStatusLayoutStatus() (layout w.Layout) { return layout } +func isQuickToolToggled() bool { + return tools.IsSelected(tools.TNPick) || tools.IsSelected(tools.TNDelete) || tools.IsSelected(tools.TNReplace) +} + func (p *PaneMap) panelStatusLayoutLevels() (layout w.Layout) { return w.Layout{ w.TextFrame(fmt.Sprintf("Z:%d", p.activeLevel)), diff --git a/src/app/ui/menu/menu.go b/src/app/ui/menu/menu.go index fc3bd6ee..e7333653 100644 --- a/src/app/ui/menu/menu.go +++ b/src/app/ui/menu/menu.go @@ -53,7 +53,7 @@ type app interface { DoOpenAbout() DoOpenLogs() DoOpenSourceCode() - DoCheckForUpdate() + DoCheckForUpdates() DoOpenSupport() // Other @@ -254,7 +254,7 @@ func (m *Menu) Process() { IconEmpty(), w.MenuItem("Source Code", m.app.DoOpenSourceCode). Icon(icon.GitHub), - w.MenuItem("Check for Update", m.app.DoCheckForUpdate). + w.MenuItem("Check for Updates", m.app.DoCheckForUpdates). Icon(icon.SystemUpdate), w.Separator(), w.MenuItem("Open Logs Folder", m.app.DoOpenLogs).