1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

debug: show active tab on Smack debugger startup

Enhanced Debugger Window showed Smack Info tab, now shows active
connection. Fixes SMACK-367.
This commit is contained in:
Jesus 2020-04-11 12:17:42 -05:00 committed by Florian Schmaus
parent 5c5dfedce2
commit c07f41c119

View file

@ -143,6 +143,7 @@ public final class EnhancedDebuggerWindow {
debugger.tabbedPane.setName("XMPPConnection_" + tabbedPane.getComponentCount());
tabbedPane.add(debugger.tabbedPane, tabbedPane.getComponentCount() - 1);
tabbedPane.setIconAt(tabbedPane.indexOfComponent(debugger.tabbedPane), connectionCreatedIcon);
tabbedPane.setSelectedIndex(tabbedPane.indexOfComponent(debugger.tabbedPane));
frame.setTitle(
"Smack Debug Window -- Total connections: " + (tabbedPane.getComponentCount() - 1));
// Keep the added debugger for later access