1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Fix changelog size hack

This commit is contained in:
RipleyTom 2024-04-04 19:37:52 +02:00 committed by Elad Ashkenazi
parent 8effbf7e4d
commit 95e0d1a560

View File

@ -336,10 +336,15 @@ void update_manager::update(bool auto_accept)
// Smartass hack to make the unresizeable message box wide enough for the changelog
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 += " &nbsp;";
while (QLabel(m_update_message).sizeHint().width() < changelog_width)
{
m_update_message += "&nbsp;";
}
}
mb.setText(m_update_message);
}