diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-01-25 22:36:24 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-01-25 22:36:24 -0500 |
commit | 7cd63de4000d583f866011ba1e58789fc8caf24f (patch) | |
tree | 45e6733ba344977902183c3c211e6103d31c192f /src | |
parent | dccc6d2f4a6ca155e070397477c4685f30254416 (diff) | |
download | abaddon-portaudio-7cd63de4000d583f866011ba1e58789fc8caf24f.tar.gz abaddon-portaudio-7cd63de4000d583f866011ba1e58789fc8caf24f.zip |
make window title consistent (#133)
Diffstat (limited to 'src')
-rw-r--r-- | src/abaddon.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/abaddon.cpp b/src/abaddon.cpp index d759426..0f4658a 100644 --- a/src/abaddon.cpp +++ b/src/abaddon.cpp @@ -725,19 +725,7 @@ void Abaddon::ActionChannelOpened(Snowflake id, bool expand_to) { const bool can_access = channel->IsDM() || m_discord.HasChannelPermission(m_discord.GetUserData().ID, id, Permission::VIEW_CHANNEL); - if (channel->Type == ChannelType::GUILD_TEXT || channel->Type == ChannelType::GUILD_NEWS) - m_main_window->set_title(std::string(APP_TITLE) + " - #" + *channel->Name); - else { - std::string display; - const auto recipients = channel->GetDMRecipients(); - if (recipients.size() > 1) - display = std::to_string(recipients.size()) + " users"; - else if (recipients.size() == 1) - display = recipients[0].Username; - else - display = "Empty group"; - m_main_window->set_title(std::string(APP_TITLE) + " - " + display); - } + m_main_window->set_title(std::string(APP_TITLE) + " - " + channel->GetDisplayName()); m_main_window->UpdateChatActiveChannel(id, expand_to); if (m_channels_requested.find(id) == m_channels_requested.end()) { // dont fire requests we know will fail |