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
This commit is contained in:
vesp 2025-12-24 03:45:51 +01:00
parent 67a374899b
commit bbb4788a73

View File

@ -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