diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-01-09 00:26:40 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-01-09 00:26:40 -0500 |
commit | fe95335d1245152bb23c6787b5d55ea5874fd78a (patch) | |
tree | 990c8d5203cfe4e761f23bb87d0e3c3b99707a5c /src/components | |
parent | 781bdc5d7a72cacb9d0ce6e2893dcbba04088417 (diff) | |
download | abaddon-portaudio-fe95335d1245152bb23c6787b5d55ea5874fd78a.tar.gz abaddon-portaudio-fe95335d1245152bb23c6787b5d55ea5874fd78a.zip |
set folder name tooltip
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/channellist/classic/guildlistfolderitem.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/channellist/classic/guildlistfolderitem.cpp b/src/components/channellist/classic/guildlistfolderitem.cpp index f79227b..e79a5f7 100644 --- a/src/components/channellist/classic/guildlistfolderitem.cpp +++ b/src/components/channellist/classic/guildlistfolderitem.cpp @@ -35,6 +35,10 @@ void GuildListFolderButton::SetGuilds(const std::vector<Snowflake> &guild_ids) { GuildListFolderItem::GuildListFolderItem(const UserSettingsGuildFoldersEntry &folder) { get_style_context()->add_class("classic-guild-folder"); + if (folder.Name.has_value()) { + set_tooltip_text(*folder.Name); + } + m_revealer.add(m_box); m_revealer.set_reveal_child(false); |