aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cc/woverflow/chatting/config
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2023-01-14 13:45:51 -0500
committerWyvest <45589059+Wyvest@users.noreply.github.com>2023-01-14 13:45:51 -0500
commite574e54a53b87ef4bbb33404b6fdb6b97c72dd81 (patch)
tree62bc726b1f0eb4727b6ddf10696f1fa69c519806 /src/main/kotlin/cc/woverflow/chatting/config
parent27aa4095270f943ddab2a4e4d370e225766c7ff7 (diff)
downloadChatting-e574e54a53b87ef4bbb33404b6fdb6b97c72dd81.tar.gz
Chatting-e574e54a53b87ef4bbb33404b6fdb6b97c72dd81.tar.bz2
Chatting-e574e54a53b87ef4bbb33404b6fdb6b97c72dd81.zip
allow selecting multiple chat tabs at the same time
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/config')
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt6
1 files changed, 4 insertions, 2 deletions
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") {