Fix: vertical mode not updating properly on screen size change (#1631)

This commit is contained in:
Adrian Paschkowski authored and GitHub committed 2025-12-26 18:19:13 -03:00
1 parent 39eaa27eb3
commit 0747a7a150
1 file changed
+1 -1
+1 -1
View File
@@ -1316,10 +1316,10 @@ class KlipperScreen(Gtk.Window):
new_mode = new_ratio < 1.0
ratio_delta = abs(self.aspect_ratio - new_ratio)
if ratio_delta > 0.1 and self.vertical_mode != new_mode:
self.reload_panels()
self.vertical_mode = new_mode
self.aspect_ratio = new_ratio
logging.info(f"Vertical mode: {self.vertical_mode}")
self.reload_panels()
def main():