diff --git a/tabcounter/label.py b/tabcounter/label.py index 6ae90ae..7a09206 100644 --- a/tabcounter/label.py +++ b/tabcounter/label.py @@ -40,6 +40,7 @@ class Label(QtWidgets.QLabel): self.updateText() self.window.tabWidget().changed.connect(self.updateText) + self.window.tabWidget().tabRemoved.connect(self.updateText) def id(self): return "tab-counter-button"