fix(weather): queue toplevel resize after label update
Wrapped location reflow never reaches the layer-shell toplevel through Gtk.Fixed, so the card stays at "Loading..." height and clips the second line of a wrapped location on first init. Queue the toplevel after updating labels so the taller allocation is applied.
This commit is contained in:
1 file changed
+4
@@ -118,6 +118,10 @@ class DesktopWeatherWidget(Box):
|
||||
self.city.set_label("Error")
|
||||
self.condition.set_label("UI Error")
|
||||
|
||||
toplevel = self.get_toplevel()
|
||||
if toplevel is not None and toplevel is not self:
|
||||
toplevel.queue_resize()
|
||||
|
||||
def destroy(self):
|
||||
try:
|
||||
self._service.disconnect_by_func(self._on_service_update)
|
||||
|
||||
Reference in new issue
Block a user