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:
parent
74250c36b7
commit
5334902d7a
@ -136,7 +136,6 @@ class RosterWindow(Adw.ApplicationWindow):
|
|||||||
/* Force both header bars to same height */
|
/* Force both header bars to same height */
|
||||||
headerbar {
|
headerbar {
|
||||||
min-height: 46px;
|
min-height: 46px;
|
||||||
max-height: 46px;
|
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
@ -495,8 +494,16 @@ class RosterWindow(Adw.ApplicationWindow):
|
|||||||
)
|
)
|
||||||
current_tab.modified = False
|
current_tab.modified = False
|
||||||
|
|
||||||
# Load into UI
|
# Load into UI - get current widget and update it
|
||||||
self._load_request_to_ui(request)
|
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:
|
else:
|
||||||
# Current tab has changes or is not a "New Request"
|
# Current tab has changes or is not a "New Request"
|
||||||
# Create a new tab
|
# Create a new tab
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user