mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
Fix changelog size hack
This commit is contained in:
parent
8effbf7e4d
commit
95e0d1a560
1 changed files with 7 additions and 2 deletions
|
@ -336,10 +336,15 @@ void update_manager::update(bool auto_accept)
|
||||||
|
|
||||||
// Smartass hack to make the unresizeable message box wide enough for the changelog
|
// Smartass hack to make the unresizeable message box wide enough for the changelog
|
||||||
const int changelog_width = QLabel(changelog_content).sizeHint().width();
|
const int changelog_width = QLabel(changelog_content).sizeHint().width();
|
||||||
while (QLabel(m_update_message).sizeHint().width() < changelog_width)
|
if (QLabel(m_update_message).sizeHint().width() < changelog_width)
|
||||||
{
|
{
|
||||||
m_update_message += " ";
|
m_update_message += " ";
|
||||||
|
while (QLabel(m_update_message).sizeHint().width() < changelog_width)
|
||||||
|
{
|
||||||
|
m_update_message += " ";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mb.setText(m_update_message);
|
mb.setText(m_update_message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue