From 1af77ee6de9ef4da5f16bbefcb3fcf0dbb92f364 Mon Sep 17 00:00:00 2001 From: Ali Mirjamali Date: Sun, 23 Feb 2025 18:37:30 +0330 Subject: [PATCH] Assure Update window width does not break OpenQA Refrence: https://github.com/QubesOS/qubes-desktop-linux-manager/pull/246#issuecomment-2676911529 --- qui/updater/updater.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qui/updater/updater.py b/qui/updater/updater.py index d557d47d..fc2afee4 100644 --- a/qui/updater/updater.py +++ b/qui/updater/updater.py @@ -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 )