Menu bar, toolbar and hotkeys share one set of commands

MainCommands holds each command once: the plain ones act on the server
on screen, the ones taking a list of sessions serve hotkeys, which reach
the selected server or every connected one. The menu bar, toolbar and
HotkeyActions call it directly, so both Listener interfaces and the
forwarding in MainFrame are gone.

The menu's mute items no longer click the toolbar's buttons, and its
commander toggle now repaints the toolbar and tray.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 21:14:31 +00:00
co-authored by Claude Opus 5.5
parent de42429d08
commit f7cf0401e4
8 changed files with 587 additions and 780 deletions
+2 -1
View File
@@ -296,6 +296,7 @@ swing/ eu.lixko.ts3j.client
├── Main entry point (look & feel, settings, backend injection)
└── ui
├── MainFrame window: menu, toolbar, tree | chat, status bar
├── MainCommands what the menu, toolbar and hotkeys do, each command once
├── ServerTreePanel TS3-style channel/client tree (group badges, spacers)
├── Spacers TS3 spacer-channel name parsing/rendering
├── InfoPanel channel description / client group + details view
@@ -304,7 +305,7 @@ swing/ eu.lixko.ts3j.client
├── HotkeysPanel hotkey list (Options → Hotkeys)
├── HotkeyDialog add/edit one hotkey: action, combination, trigger, scope
├── HotkeyService bindings + engine + input hook, for the dialogs
├── HotkeyActions carries a fired hotkey out on the client
├── HotkeyActions maps a fired hotkey to its command
├── NotificationsPanel sound pack + per-action sound/important configuration
├── IconPackPanel icon pack chooser + icon viewer (Options → Design)
├── DisplayScale interface scale on Linux (fractional, via FlatLaf)