Fixed some style errors.

This commit is contained in:
Joel Torstensson 2015-04-09 12:49:32 +02:00
parent cc2c7c09ea
commit 12c83b721f
2 changed files with 4 additions and 3 deletions

View File

@ -236,8 +236,8 @@ def data(readonly=False):
"The default zoom level."),
('downloads-position',
SettingValue(typ.VerticalPosition(), 'north'),
"Where to show the downloaded files."),
SettingValue(typ.VerticalPosition(), 'north'),
"Where to show the downloaded files."),
('message-timeout',
SettingValue(typ.Int(), '2000'),
@ -1010,6 +1010,7 @@ def data(readonly=False):
DATA = data(readonly=True)
KEY_FIRST_COMMENT = """
# vim: ft=conf
#

View File

@ -144,6 +144,7 @@ class MainWindow(QWidget):
self._add_widgets()
def _add_widgets(self):
"""Add or readd all widgets to the VBox."""
self._vbox.removeWidget(self._tabbed_browser)
self._vbox.removeWidget(self._downloadview)
self._vbox.removeWidget(self.status)
@ -158,7 +159,6 @@ class MainWindow(QWidget):
raise ValueError("Invalid position {}!".format(position))
self._vbox.addWidget(self.status)
def _load_state_geometry(self):
"""Load the geometry from the state file."""
state_config = objreg.get('state-config')