fix: improve OpenCode update and desktop menu behavior

Restart OpenCode after successful updates so the new version is active
Open native About menu into the app About dialog
Update desktop View menu actions for the new layout
This commit is contained in:
Bohdan Triapitsyn
2026-05-20 17:29:00 +03:00
parent 966f35da6c
commit aaffd6c598
12 changed files with 130 additions and 98 deletions
+7 -5
View File
@@ -2414,7 +2414,7 @@ const buildMacMenu = () => {
{
label: app.name,
submenu: [
{ role: 'about' },
{ label: 'About OpenChamber', click: () => dispatchAction('about') },
{
label: 'Check for Updates',
click: () => dispatchCheckForUpdates(),
@@ -2461,10 +2461,12 @@ const buildMacMenu = () => {
{
label: 'View',
submenu: [
{ label: 'Git', accelerator: 'Cmd+G', click: () => dispatchAction('open-git-tab') },
{ label: 'Diff', accelerator: 'Cmd+E', click: () => dispatchAction('open-diff-tab') },
{ label: 'Files', click: () => dispatchAction('open-files-tab') },
{ label: 'Terminal', accelerator: 'Cmd+T', click: () => dispatchAction('open-terminal-tab') },
{ label: 'Toggle Right Sidebar', accelerator: 'Cmd+B', click: () => dispatchAction('toggle-right-sidebar') },
{ label: 'Open Git Sidebar', accelerator: 'Cmd+Shift+G', click: () => dispatchAction('open-right-sidebar-git') },
{ label: 'Open Files Sidebar', accelerator: 'Cmd+Shift+F', click: () => dispatchAction('open-right-sidebar-files') },
{ type: 'separator' },
{ label: 'Toggle Terminal Dock', accelerator: 'Cmd+J', click: () => dispatchAction('toggle-terminal') },
{ label: 'Toggle Terminal Expanded', accelerator: 'Cmd+Shift+J', click: () => dispatchAction('toggle-terminal-expanded') },
{ type: 'separator' },
{ label: 'Light Theme', click: () => dispatchAction('theme-light') },
{ label: 'Dark Theme', click: () => dispatchAction('theme-dark') },