Skip to content

Commit

Permalink
Integrate disable() in _clear_widgets()
Browse files Browse the repository at this point in the history
  • Loading branch information
pylbrecht committed May 10, 2024
1 parent 6e7e7fa commit df21b30
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qutebrowser/mainwindow/statusbar/bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,7 @@ def _clear_widgets(self):
self.backforward, self.tabindex,
self.keystring, self.prog, self.clock, *self._text_widgets]:
assert isinstance(widget, QWidget)
if widget in [self.prog, self.backforward]:
widget.enabled = False # type: ignore[attr-defined]
widget.hide()
widget.disable()
self._hbox.removeWidget(widget)
self._text_widgets.clear()

Expand Down

0 comments on commit df21b30

Please sign in to comment.