Merge branch 'status-position' of https://github.com/blyxxyz/qutebrowser into blyxxyz-status-position
This commit is contained in:
commit
b5c1db6bae
@ -215,13 +215,6 @@ class MainWindow(QWidget):
|
||||
status_position = config.get('ui', 'status-position')
|
||||
widgets = [self.tabbed_browser]
|
||||
|
||||
if status_position == 'top':
|
||||
widgets.insert(0, self.status)
|
||||
elif status_position == 'bottom':
|
||||
widgets.append(self.status)
|
||||
else:
|
||||
raise ValueError("Invalid position {}!".format(status_position))
|
||||
|
||||
if downloads_position == 'top':
|
||||
widgets.insert(0, self._downloadview)
|
||||
elif downloads_position == 'bottom':
|
||||
@ -229,6 +222,13 @@ class MainWindow(QWidget):
|
||||
else:
|
||||
raise ValueError("Invalid position {}!".format(downloads_position))
|
||||
|
||||
if status_position == 'top':
|
||||
widgets.insert(0, self.status)
|
||||
elif status_position == 'bottom':
|
||||
widgets.append(self.status)
|
||||
else:
|
||||
raise ValueError("Invalid position {}!".format(status_position))
|
||||
|
||||
for widget in widgets:
|
||||
self._vbox.addWidget(widget)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user