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 <noreply@anthropic.com>
This commit is contained in:
@@ -195,6 +195,8 @@ public final class ServerTreePanel extends JPanel {
|
|||||||
// no expand control. Nesting is tightened too: horizontal space in this view
|
// no expand control. Nesting is tightened too: horizontal space in this view
|
||||||
// is scarce and channel names are long.
|
// is scarce and channel names are long.
|
||||||
tree.setShowsRootHandles(false);
|
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) {
|
if (tree.getUI() instanceof BasicTreeUI) {
|
||||||
BasicTreeUI ui = (BasicTreeUI) tree.getUI();
|
BasicTreeUI ui = (BasicTreeUI) tree.getUI();
|
||||||
ui.setLeftChildIndent(4);
|
ui.setLeftChildIndent(4);
|
||||||
|
|||||||
Reference in New Issue
Block a user