mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Handle an old 'tabs.state' gracefully by just using the defaults.
This commit is contained in:
parent
cfadbec2cf
commit
9b60cdd241
@ -110,7 +110,13 @@ class TorrentDetails(component.Component):
|
||||
|
||||
# Get the state from saved file
|
||||
state = self.load_state()
|
||||
|
||||
|
||||
for item in state:
|
||||
if not isinstance(item, tuple):
|
||||
log.debug("Old tabs.state, using default..")
|
||||
state = None
|
||||
break
|
||||
|
||||
# The state is a list of tab_names in the order they should appear
|
||||
if state == None:
|
||||
# Set the default order
|
||||
|
Loading…
x
Reference in New Issue
Block a user