completion of the path to backups

This commit is contained in:
DYefremov
2019-01-12 19:17:20 +03:00
parent f728a01963
commit eb55cc76be
3 changed files with 11 additions and 9 deletions

View File

@@ -881,8 +881,9 @@ class Application(Gtk.Application):
profile = Profile(self._profile)
options = self._options.get(self._profile)
path = options.get("data_dir_path")
backup_path = options.get("backup_dir_path", path + "backup/")
# Backup data or clearing data path
backup_data(path) if options.get("backup_before_save", True) else clear_data_path(path)
backup_data(path, backup_path) if options.get("backup_before_save", True) else clear_data_path(path)
bouquets = []