diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-06-21 02:31:18 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-06-21 02:31:18 -0400 |
commit | 19f7d55c8748e4fcd651540e299347689a2070ad (patch) | |
tree | 38fa8ae624c45e60a4c0fb96b23988589fee8507 /src/windows | |
parent | 00dddf410e8aa9df64d323211e9dcdf4309f06a1 (diff) | |
download | abaddon-portaudio-19f7d55c8748e4fcd651540e299347689a2070ad.tar.gz abaddon-portaudio-19f7d55c8748e4fcd651540e299347689a2070ad.zip |
show legacy username as tooltip under username
Diffstat (limited to 'src/windows')
-rw-r--r-- | src/windows/profilewindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/windows/profilewindow.cpp b/src/windows/profilewindow.cpp index ed8cd8a..72996aa 100644 --- a/src/windows/profilewindow.cpp +++ b/src/windows/profilewindow.cpp @@ -103,8 +103,13 @@ void ProfileWindow::OnFetchProfile(const UserProfileData &data) { m_pane_info.SetProfile(data); m_pane_guilds.SetMutualGuilds(data.MutualGuilds); - for (auto child : m_badges.get_children()) + if (data.LegacyUsername.has_value()) { + m_username.set_tooltip_text("Originally known as " + *data.LegacyUsername); + } + + for (auto child : m_badges.get_children()) { delete child; + } if (!data.User.PublicFlags.has_value()) return; const auto x = *data.User.PublicFlags; |