Skip to content

Commit

Permalink
Assure Update window width does not break OpenQA
Browse files Browse the repository at this point in the history
Refrence: #246 (comment)
  • Loading branch information
alimirjamali committed Feb 24, 2025
1 parent add35fb commit 1af77ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qui/updater/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def cell_data_func(_column, cell, model, it, data):
# Wide enough for details section to show update progress.
# But still less than 1024 pixels to do not break OpenQA tests.
width = max(width, 1000)
width = min(width, self.main_window.get_screen().get_width() - 12)
height = min(
int(width * 1.2), self.main_window.get_screen().get_height() - 48
)
Expand Down

0 comments on commit 1af77ee

Please sign in to comment.