Add setting for username display style (#2891)

This commit is contained in:
Mm2PL
2021-06-13 12:13:19 +00:00
committed by GitHub
parent 91b0170241
commit eb8ddfc1d3
5 changed files with 23 additions and 11 deletions
@@ -674,11 +674,7 @@ void TwitchMessageBuilder::appendUsername()
// The full string that will be rendered in the chat widget
QString usernameText;
pajlada::Settings::Setting<int> usernameDisplayMode(
"/appearance/messages/usernameDisplayMode",
UsernameDisplayMode::UsernameAndLocalizedName);
switch (usernameDisplayMode.getValue())
switch (getSettings()->usernameDisplayMode.getValue())
{
case UsernameDisplayMode::Username: {
usernameText = username;