diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-11-04 01:39:56 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-11-04 01:39:56 -0400 |
commit | 1f445742b4fbc185fe0e24d9ed2478e4f7495f53 (patch) | |
tree | 115717c39b7769a7ad97776fbc299362fd8b10c9 /components/channels.hpp | |
parent | d629846220d069a86b000db213d47c8681e8f57a (diff) | |
download | abaddon-portaudio-1f445742b4fbc185fe0e24d9ed2478e4f7495f53.tar.gz abaddon-portaudio-1f445742b4fbc185fe0e24d9ed2478e4f7495f53.zip |
preserve channel list expansion and active channel (#36)
also check getenv in platform
Diffstat (limited to 'components/channels.hpp')
-rw-r--r-- | components/channels.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/channels.hpp b/components/channels.hpp index 5cfa9c3..1faf367 100644 --- a/components/channels.hpp +++ b/components/channels.hpp @@ -6,7 +6,8 @@ #include <unordered_set> #include <unordered_map> #include <sigc++/sigc++.h> -#include "../discord/discord.hpp" +#include "discord/discord.hpp" +#include "state.hpp" constexpr static int GuildIconSize = 24; constexpr static int DMIconSize = 20; @@ -134,6 +135,10 @@ public: void UpdateListing(); void SetActiveChannel(Snowflake id); + // channel list should be populated when this is called + void UseExpansionState(const ExpansionStateRoot &state); + ExpansionStateRoot GetExpansionState() const; + protected: void UpdateNewGuild(const GuildData &guild); void UpdateRemoveGuild(Snowflake id); |