Do not update counter label if widget has been removed

issue11110
review380011002
This commit is contained in:
Cédric Krier committed 2022-01-11 23:04:17 +01:00
1 parent ccf9708565
commit 3276c06c2a
1 file changed
+1 -1
@@ -193,7 +193,7 @@ class Link(StateMixin, Gtk.Button):
counter=counter, label=label))
def _set_count(self, value, idx=0, current=None, counter=None, label=''):
if current != self._current:
if current != self._current and not self.get_parent():
return
try:
counter[idx] = value()