Fixed some style errors.
This commit is contained in:
parent
cc2c7c09ea
commit
12c83b721f
@ -236,8 +236,8 @@ def data(readonly=False):
|
|||||||
"The default zoom level."),
|
"The default zoom level."),
|
||||||
|
|
||||||
('downloads-position',
|
('downloads-position',
|
||||||
SettingValue(typ.VerticalPosition(), 'north'),
|
SettingValue(typ.VerticalPosition(), 'north'),
|
||||||
"Where to show the downloaded files."),
|
"Where to show the downloaded files."),
|
||||||
|
|
||||||
('message-timeout',
|
('message-timeout',
|
||||||
SettingValue(typ.Int(), '2000'),
|
SettingValue(typ.Int(), '2000'),
|
||||||
@ -1010,6 +1010,7 @@ def data(readonly=False):
|
|||||||
|
|
||||||
DATA = data(readonly=True)
|
DATA = data(readonly=True)
|
||||||
|
|
||||||
|
|
||||||
KEY_FIRST_COMMENT = """
|
KEY_FIRST_COMMENT = """
|
||||||
# vim: ft=conf
|
# vim: ft=conf
|
||||||
#
|
#
|
||||||
|
@ -144,6 +144,7 @@ class MainWindow(QWidget):
|
|||||||
self._add_widgets()
|
self._add_widgets()
|
||||||
|
|
||||||
def _add_widgets(self):
|
def _add_widgets(self):
|
||||||
|
"""Add or readd all widgets to the VBox."""
|
||||||
self._vbox.removeWidget(self._tabbed_browser)
|
self._vbox.removeWidget(self._tabbed_browser)
|
||||||
self._vbox.removeWidget(self._downloadview)
|
self._vbox.removeWidget(self._downloadview)
|
||||||
self._vbox.removeWidget(self.status)
|
self._vbox.removeWidget(self.status)
|
||||||
@ -158,7 +159,6 @@ class MainWindow(QWidget):
|
|||||||
raise ValueError("Invalid position {}!".format(position))
|
raise ValueError("Invalid position {}!".format(position))
|
||||||
self._vbox.addWidget(self.status)
|
self._vbox.addWidget(self.status)
|
||||||
|
|
||||||
|
|
||||||
def _load_state_geometry(self):
|
def _load_state_geometry(self):
|
||||||
"""Load the geometry from the state file."""
|
"""Load the geometry from the state file."""
|
||||||
state_config = objreg.get('state-config')
|
state_config = objreg.get('state-config')
|
||||||
|
Loading…
Reference in New Issue
Block a user