fix tab titles

This commit is contained in:
ouwou
2022-04-14 00:11:39 -04:00
parent d36fe4d0e9
commit 34f8af599d
3 changed files with 15 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ void ChannelTabSwitcherHandy::ReplaceActiveTab(Snowflake id) {
const auto channel = discord.GetChannel(id);
if (!channel.has_value()) return;
hdy_tab_page_set_title(page, ("#" + *channel->Name).c_str());
hdy_tab_page_set_title(page, channel->GetDisplayName().c_str());
ClearPage(page);
m_pages[id] = page;