From 781fbfaa30de12ebe0df1e12418afbfefedd6072 Mon Sep 17 00:00:00 2001 From: rouggy Date: Mon, 20 Jul 2026 12:05:12 +0200 Subject: [PATCH] fix: wire up File - Exit (was disabled and had no handler) The File menu's Exit item was hard-disabled and its action had no case in the menu dispatcher, so it did nothing. Enable it and route file.exit to QuitApp, which runs the same graceful beforeClose shutdown as the window close button. --- frontend/src/App.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 52c15cc..8a8a81e 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -41,7 +41,7 @@ import { ChatAvailable, GetChatHistory, SendChatMessage, GetOnlineOperators, QSOAudioBegin, QSOAudioCancel, QSOAudioRestart, QSOAudioResetClock, GetAwardDefs, - GetUIPref, GetActiveProfile, + GetUIPref, GetActiveProfile, QuitApp, ReportLiveActivity, GetLiveStatusEnabled, LiveLastQSOAgeSec, } from '../wailsjs/go/main/App'; import { Combobox } from '@/components/ui/combobox'; @@ -2762,7 +2762,7 @@ export default function App() { { type: 'separator' }, { type: 'item', label: t('file.deleteAll'), action: 'file.deleteall', disabled: total === 0 }, { type: 'separator' }, - { type: 'item', label: t('file.exit'), action: 'file.exit', shortcut: 'Ctrl+Q', disabled: true }, + { type: 'item', label: t('file.exit'), action: 'file.exit', shortcut: 'Ctrl+Q' }, ]}, { name: 'edit', label: t('menu.edit'), items: [ { type: 'item', label: t('edit.editSel'), action: 'edit.edit', shortcut: 'Enter', disabled: selectedId === null }, @@ -2807,6 +2807,7 @@ export default function App() { case 'file.export': exportAdif(); break; case 'file.exportCabrillo': exportCabrillo(); break; case 'file.deleteall': setShowDeleteAll(true); break; + case 'file.exit': QuitApp(); break; case 'view.refresh': refresh(); break; case 'view.clearfilters': setFilterCallsign(''); setActiveFilter({ conditions: [], match: 'AND' }); break; case 'edit.edit': if (selectedId !== null) openEdit(selectedId); break;