Reduce the size of the update prompt (#4626)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Felanbird 2023-05-13 06:13:42 -04:00 committed by GitHub
parent 1d4c6d5a9e
commit 8e87886ccc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 13 deletions

View file

@ -8,6 +8,7 @@
- Bugfix: Fixed the menu warping on macOS on Qt6. (#4595) - Bugfix: Fixed the menu warping on macOS on Qt6. (#4595)
- Bugfix: Fixed link tooltips not showing unless the thumbnail setting was enabled. (#4597) - Bugfix: Fixed link tooltips not showing unless the thumbnail setting was enabled. (#4597)
- Bugfix: Domains starting with `http` are now parsed as links again. (#4598) - Bugfix: Domains starting with `http` are now parsed as links again. (#4598)
- Bugfix: Reduced the size of the update prompt to prevent it from going off the users screen. (#4626)
- Bugfix: Fixed click effects on buttons not being antialiased. (#4473) - Bugfix: Fixed click effects on buttons not being antialiased. (#4473)
- Bugfix: Fixed Ctrl+Backspace not working after Select All in chat search popup. (#4461) - Bugfix: Fixed Ctrl+Backspace not working after Select All in chat search popup. (#4461)
- Bugfix: Fixed crash when scrolling up really fast. (#4621) - Bugfix: Fixed crash when scrolling up really fast. (#4621)

View file

@ -41,7 +41,7 @@ UpdateDialog::UpdateDialog()
}); });
this->setScaleIndependantHeight(150); this->setScaleIndependantHeight(150);
this->setScaleIndependantWidth(500); this->setScaleIndependantWidth(250);
} }
void UpdateDialog::updateStatusChanged(Updates::Status status) void UpdateDialog::updateStatusChanged(Updates::Status status)
@ -51,18 +51,18 @@ void UpdateDialog::updateStatusChanged(Updates::Status status)
switch (status) switch (status)
{ {
case Updates::UpdateAvailable: { case Updates::UpdateAvailable: {
this->ui_.label->setText( this->ui_.label->setText((
(Updates::instance().isDowngrade() Updates::instance().isDowngrade()
? QString( ? QString(
"The version online (%1) seems to be lower than the " "The version online (%1) seems to be\nlower than the "
"current (%2).\nEither a version was reverted or " "current (%2).\nEither a version was reverted or "
"you are running a newer build.\n\nDo you want to " "you are\nrunning a newer build.\n\nDo you want to "
"download and install it?") "download and install it?")
.arg(Updates::instance().getOnlineVersion(), .arg(Updates::instance().getOnlineVersion(),
Updates::instance().getCurrentVersion()) Updates::instance().getCurrentVersion())
: QString("An update (%1) is available.\n\nDo you want to " : QString("An update (%1) is available.\n\nDo you want to "
"download and install it?") "download and install it?")
.arg(Updates::instance().getOnlineVersion()))); .arg(Updates::instance().getOnlineVersion())));
this->updateGeometry(); this->updateGeometry();
} }
break; break;