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:
sankalp committed 2026-08-06 15:25:04 +05:45
1 parent 1699117d15
commit 37a6a01803
1 file changed
+4
+4
View File
@@ -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)