Match TS3's menu layout: Self's away submenu and mic items, bookmarks first, more shortcuts
Self now opens with a Set Away submenu mirroring the toolbar button, then Activate Microphone and Mute/Unmute items that follow the current state. The bookmark actions come before the bookmarks. Shortcuts: Ctrl+Q quits, Ctrl+B manages bookmarks, Ctrl+I opens Identities, Ctrl+Shift+O Contacts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -213,6 +213,11 @@ public final class MainFrame extends JFrame implements ServerTabPane.Listener {
|
||||
quit();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActivate() {
|
||||
moveMicrophoneToSelectedTab();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onToggleMic() {
|
||||
toolbar.clickMic();
|
||||
@@ -233,6 +238,11 @@ public final class MainFrame extends JFrame implements ServerTabPane.Listener {
|
||||
setAwayStatus();
|
||||
}
|
||||
|
||||
@Override
|
||||
public JPopupMenu buildAwayMenu() {
|
||||
return MainFrame.this.buildAwayMenu();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCommanderToggle(boolean commander) {
|
||||
if (selected != null) selected.session().setCommander(commander);
|
||||
@@ -938,7 +948,7 @@ public final class MainFrame extends JFrame implements ServerTabPane.Listener {
|
||||
boolean commander = connected && selected.session().isCommander();
|
||||
toolbar.refresh(connected, anyConnected, micMuted, deaf, active, away);
|
||||
toolbar.showHostButton(hostButtonOf(selected));
|
||||
menuBar.refresh(connected, away, commander);
|
||||
menuBar.refresh(connected, anyConnected, micMuted, deaf, active, away, commander);
|
||||
updateTray();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user