From 715ae4434b70b704dac0c58e559bd233646b5398 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Mon, 13 Dec 2021 09:08:23 -0300 Subject: [PATCH] [view.qt.window] fix: crashing when resizing with floats instead of integers --- CHANGELOG.md | 4 ++++ bauh/view/qt/window.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f7f2506..618986de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Web - able to specify a custom User-Agent when installing apps that demand specific settings to work properly on Electron 13.X (e.g: WhatsApp Web) +### Fixes +- UI + - crashing when resizing with floats instead of integers [#216](https://github.com/vinifmor/bauh/issues/216) + ## [0.9.23] 2021-12-10 ### Features - General diff --git a/bauh/view/qt/window.py b/bauh/view/qt/window.py index bc4a438e..f7268e57 100755 --- a/bauh/view/qt/window.py +++ b/bauh/view/qt/window.py @@ -1076,7 +1076,7 @@ class ManageWindow(QWidget): new_width *= 1.05 # this extra size is not because of the toolbar button, but the table upgrade buttons if (self.pkgs and accept_lower_width) or new_width > self.width(): - self.resize(new_width, self.height()) + self.resize(int(new_width), self.height()) def set_progress_controll(self, enabled: bool): self.progress_controll_enabled = enabled