diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-02-01 21:21:56 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-02-01 21:21:56 -0500 |
commit | c41ff1e4d9b57092b2ce8ce46aa2cdce2abe639e (patch) | |
tree | 900c8ff2f65b9a45e6b39235efd3eab52e37f3f7 | |
parent | dbfdd01b13af7394c0b6117e878728d0eac097c2 (diff) | |
download | abaddon-portaudio-c41ff1e4d9b57092b2ce8ce46aa2cdce2abe639e.tar.gz abaddon-portaudio-c41ff1e4d9b57092b2ce8ce46aa2cdce2abe639e.zip |
dont populate classic guilds list if not enabled
-rw-r--r-- | src/components/channellist/channellist.cpp | 3 | ||||
-rw-r--r-- | src/components/channellist/channellist.hpp | 2 |
2 files changed, 4 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); } diff --git a/src/components/channellist/channellist.hpp b/src/components/channellist/channellist.hpp index 692afa7..78d6372 100644 --- a/src/components/channellist/channellist.hpp +++ b/src/components/channellist/channellist.hpp @@ -31,6 +31,8 @@ private: Gtk::ScrolledWindow m_guilds_scroll; GuildList m_guilds; + bool m_is_classic = false; + public: using type_signal_action_channel_item_select = sigc::signal<void, Snowflake>; using type_signal_action_guild_leave = sigc::signal<void, Snowflake>; |