Skip to content

Commit

Permalink
Fix changelog size hack
Browse files Browse the repository at this point in the history
  • Loading branch information
RipleyTom authored and elad335 committed Apr 4, 2024
1 parent 8effbf7 commit 95e0d1a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rpcs3/rpcs3qt/update_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 95e0d1a

Please sign in to comment.