From ea140b0333b9c3d24a939516fd99a58543e75342 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 14 Jun 2022 09:35:26 +0200 Subject: Use 'continue', not 'return' Otherwise, any following widget in the for loop would not be added. --- qutebrowser/mainwindow/statusbar/bar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/mainwindow/statusbar/bar.py b/qutebrowser/mainwindow/statusbar/bar.py index ae33a386a..aaaded938 100644 --- a/qutebrowser/mainwindow/statusbar/bar.py +++ b/qutebrowser/mainwindow/statusbar/bar.py @@ -262,7 +262,7 @@ class StatusBar(QWidget): cur_widget.on_tab_changed(tab) # Do not call .show() for these widgets. - return + continue elif segment.startswith('text:'): cur_widget.setText(segment.split(':', maxsplit=1)[1]) elif segment.startswith('clock:') or segment == 'clock': -- cgit v1.2.3-54-g00ecf