Fix starting if tabs.state does not exist
This commit is contained in:
parent
9f1c536eb1
commit
dde58e80d7
|
@ -111,11 +111,12 @@ class TorrentDetails(component.Component):
|
||||||
# Get the state from saved file
|
# Get the state from saved file
|
||||||
state = self.load_state()
|
state = self.load_state()
|
||||||
|
|
||||||
for item in state:
|
if state:
|
||||||
if not isinstance(item, tuple):
|
for item in state:
|
||||||
log.debug("Old tabs.state, using default..")
|
if not isinstance(item, tuple):
|
||||||
state = None
|
log.debug("Old tabs.state, using default..")
|
||||||
break
|
state = None
|
||||||
|
break
|
||||||
|
|
||||||
# The state is a list of tab_names in the order they should appear
|
# The state is a list of tab_names in the order they should appear
|
||||||
if state == None:
|
if state == None:
|
||||||
|
|
Loading…
Reference in New Issue