Merge branch 'status-position' of https://github.com/blyxxyz/qutebrowser into blyxxyz-status-position

This commit is contained in:
Florian Bruhin 2016-07-08 09:10:26 +02:00
commit b5c1db6bae

View File

@ -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)