fix(screen): wrong logging size when resized

This commit is contained in:
Alfredo Monclus committed 2024-07-06 14:57:56 -03:00
1 parent b952130fb6
commit 8820059895
1 file changed
+1 -1
+1 -1
View File
@@ -1191,7 +1191,7 @@ class KlipperScreen(Gtk.Window):
def update_size(self, *args):
width, height = self.get_size()
if width != self.width or height != self.height:
logging.info(f"Size changed: {self.width}x{self.height}")
logging.info(f"Size changed: {width}x{height}")
self.width, self.height = width, height
new_ratio = self.width / self.height
new_mode = new_ratio < 1.0