From 5334902d7a85b2a315de675600d39aa16d9b3e0b Mon Sep 17 00:00:00 2001 From: Pavel Baksy Date: Wed, 24 Dec 2025 03:45:51 +0100 Subject: [PATCH] Fix CSS error and history loading - Remove invalid max-height CSS property (GTK doesn't support it) - Fix loading from history: update widget instead of calling removed method - Update tab page title when loading from history --- src/window.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/window.py b/src/window.py index 31fc3f7..1900e99 100644 --- a/src/window.py +++ b/src/window.py @@ -136,7 +136,6 @@ class RosterWindow(Adw.ApplicationWindow): /* Force both header bars to same height */ headerbar { min-height: 46px; - max-height: 46px; padding-top: 0; padding-bottom: 0; padding-left: 0px; @@ -495,8 +494,16 @@ class RosterWindow(Adw.ApplicationWindow): ) current_tab.modified = False - # Load into UI - self._load_request_to_ui(request) + # Load into UI - get current widget and update it + page = self.tab_view.get_selected_page() + if page: + widget = self.page_to_widget.get(page) + if widget: + widget._load_request(request) + widget.original_request = current_tab.original_request + widget.modified = False + # Update tab page title + page.set_title(name) else: # Current tab has changes or is not a "New Request" # Create a new tab