Fix :restart deleting the given --basedir

This commit is contained in:
Florian Bruhin 2016-08-16 21:26:57 +02:00
parent 577c6270ad
commit 1dbedbc474
2 changed files with 4 additions and 2 deletions

View File

@ -141,6 +141,7 @@ Fixed
- Fixed crash when cancelling a download after doing `:prompt-open-download`
- Fixed crash when writing a download to disk fails with
`:prompt-open-download`.
- Fixed `:restart` deleting the basedir when it was given with `--basedir`.
v0.8.1
------

View File

@ -539,8 +539,9 @@ class Quitter:
argdict['session'] = session
argdict['override_restore'] = False
# Ensure :restart works with --temp-basedir
argdict['temp_basedir'] = False
argdict['temp_basedir_restarted'] = True
if self._args.temp_basedir:
argdict['temp_basedir'] = False
argdict['temp_basedir_restarted'] = True
# Dump the data
data = json.dumps(argdict)