summaryrefslogtreecommitdiff
path: root/src/components/channellist/channellist.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2024-02-01 21:21:56 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2024-02-01 21:21:56 -0500
commitc41ff1e4d9b57092b2ce8ce46aa2cdce2abe639e (patch)
tree900c8ff2f65b9a45e6b39235efd3eab52e37f3f7 /src/components/channellist/channellist.cpp
parentdbfdd01b13af7394c0b6117e878728d0eac097c2 (diff)
downloadabaddon-portaudio-c41ff1e4d9b57092b2ce8ce46aa2cdce2abe639e.tar.gz
abaddon-portaudio-c41ff1e4d9b57092b2ce8ce46aa2cdce2abe639e.zip
dont populate classic guilds list if not enabled
Diffstat (limited to 'src/components/channellist/channellist.cpp')
-rw-r--r--src/components/channellist/channellist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/channellist/channellist.cpp b/src/components/channellist/channellist.cpp
index 105e0d0..87aa6ed 100644
--- a/src/components/channellist/channellist.cpp
+++ b/src/components/channellist/channellist.cpp
@@ -28,7 +28,7 @@ ChannelList::ChannelList() {
void ChannelList::UpdateListing() {
m_tree.UpdateListing();
- m_guilds.UpdateListing();
+ if (m_is_classic) m_guilds.UpdateListing();
}
void ChannelList::SetActiveChannel(Snowflake id, bool expand_to) {
@@ -56,6 +56,7 @@ void ChannelList::UsePanedHack(Gtk::Paned &paned) {
}
void ChannelList::SetClassic(bool value) {
+ m_is_classic = value;
m_tree.SetClassic(value);
m_guilds_scroll.set_visible(value);
}