Skip to content

Commit

Permalink
Fixing Qubes OS Update window height on small dispplays
Browse files Browse the repository at this point in the history
  • Loading branch information
alimirjamali committed Jul 7, 2024
1 parent 7f11555 commit a8cd70b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qui/updater/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ def cell_data_func(_column, cell, model, it, data):
self.log.info("Show intro page.")
self.main_window.show_all()
width = self.intro_page.vm_list.get_preferred_width().natural_width
self.main_window.resize(width + 50, int(width * 1.2))
height = min(int(width * 1.2),
self.main_window.get_screen().get_height() - 48)
self.main_window.resize(width + 50, height)
self.main_window.set_position(Gtk.WindowPosition.CENTER_ALWAYS)

def open_settings_window(self, _emitter):
Expand Down

0 comments on commit a8cd70b

Please sign in to comment.