From 0ad56671af879308fd49753f558aed1eafa66903 Mon Sep 17 00:00:00 2001 From: ericek111 Date: Thu, 1 Oct 2026 17:07:13 +0000 Subject: [PATCH] Stop double-click from expanding channels in the server tree Double-click joins a channel; expanding is left to the handles and the keyboard. Co-Authored-By: Claude Opus 5.5 --- .../swing/src/main/java/com/ts3client/ui/ServerTreePanel.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ts3-client/swing/src/main/java/com/ts3client/ui/ServerTreePanel.java b/ts3-client/swing/src/main/java/com/ts3client/ui/ServerTreePanel.java index 325c254..3260667 100644 --- a/ts3-client/swing/src/main/java/com/ts3client/ui/ServerTreePanel.java +++ b/ts3-client/swing/src/main/java/com/ts3client/ui/ServerTreePanel.java @@ -195,6 +195,8 @@ public final class ServerTreePanel extends JPanel { // no expand control. Nesting is tightened too: horizontal space in this view // is scarce and channel names are long. tree.setShowsRootHandles(false); + // Double-click joins a channel; expanding is left to the handles and the keyboard. + tree.setToggleClickCount(0); if (tree.getUI() instanceof BasicTreeUI) { BasicTreeUI ui = (BasicTreeUI) tree.getUI(); ui.setLeftChildIndent(4);