From e574e54a53b87ef4bbb33404b6fdb6b97c72dd81 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Sat, 14 Jan 2023 13:45:51 -0500 Subject: allow selecting multiple chat tabs at the same time --- src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/cc/woverflow/chatting/config') diff --git a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt b/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt index ab52eb9..86db2cc 100644 --- a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt +++ b/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt @@ -222,9 +222,11 @@ object ChattingConfig : Config( prefix = "" ) dummy.initialize() - ChatTabs.currentTab = dummy + ChatTabs.currentTabs.clear() + ChatTabs.currentTabs.add(dummy) } else { - ChatTabs.currentTab = ChatTabs.tabs[0] + ChatTabs.currentTabs.clear() + ChatTabs.currentTabs.add(ChatTabs.tabs[0]) } } addListener("chatShortcuts") { -- cgit