fix: qt 6.4.3 stringbuilding shenanigans with scope check message (#6083)

This commit is contained in:
pajlada
2025-03-16 13:04:18 +01:00
committed by GitHub
parent 57dc0144b2
commit e54e28ee39
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
- Minor: The font weight of chat messages can now be changed. (#6037) - Minor: The font weight of chat messages can now be changed. (#6037)
- Minor: Messages from restricted users can now be hidden when in streamer mode. This is enabled by default. (#6042, #6049) - Minor: Messages from restricted users can now be hidden when in streamer mode. This is enabled by default. (#6042, #6049)
- Minor: Added a tab style option allowing you to make your tabs more compact. (#5858) - Minor: Added a tab style option allowing you to make your tabs more compact. (#5858)
- Minor: Chatterino now warns about missing scopes when logging in. (#6072) - Minor: Chatterino now warns about missing scopes when logging in. (#6072, #6083)
- Bugfix: Fixed a potential way to escape the Lua Plugin sandbox. (#5846) - Bugfix: Fixed a potential way to escape the Lua Plugin sandbox. (#5846)
- Bugfix: Fixed a crash relating to Lua HTTP. (#5800) - Bugfix: Fixed a crash relating to Lua HTTP. (#5800)
- Bugfix: Fixed a crash that could occur on Linux and macOS when clicking "Install" from the update prompt. (#5818) - Bugfix: Fixed a crash that could occur on Linux and macOS when clicking "Install" from the update prompt. (#5818)
+4 -4
View File
@@ -2060,13 +2060,13 @@ MessagePtr MessageBuilder::makeLowTrustUpdateMessage(
MessagePtrMut MessageBuilder::makeMissingScopesMessage( MessagePtrMut MessageBuilder::makeMissingScopesMessage(
const QString &missingScopes) const QString &missingScopes)
{ {
auto warnText = u"Your account is missing the following permission(s): " % QString warnText =
missingScopes % u"Your account is missing the following permission(s): " %
u". Some features might not work correctly."; missingScopes % u". Some features might not work correctly.";
auto linkText = u"Consider re-adding your account."_s; auto linkText = u"Consider re-adding your account."_s;
MessageBuilder builder; MessageBuilder builder;
auto text = warnText % ' ' % linkText; QString text = warnText % ' ' % linkText;
builder->messageText = text; builder->messageText = text;
builder->searchText = text; builder->searchText = text;
builder->flags.set(MessageFlag::System, builder->flags.set(MessageFlag::System,