Skip to content

Commit

Permalink
Clear contents of log_text after successfull backup (borgbase#1626)
Browse files Browse the repository at this point in the history
Currently the label `logText` is not cleared after a borg command finished. When creating a backup the label will show the path of the last backuped file even after backup completion.

This changes that and clears `logText` after the backup.

* src/vorta/borg/create.py (BorgCreateJob.process_result)

---------

Co-authored-by: yfprojects <62463991+real-yfprojects@users.noreply.github.com>
  • Loading branch information
2 people authored and DaffyTheDuck committed Jun 14, 2023
1 parent 9b666c7 commit b647d5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vorta/borg/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def process_result(self, result):
).format(LOG_DIR.as_uri())
)
else:
self.app.backup_log_event.emit('', {})
self.app.backup_progress_event.emit(f"[{self.params['profile_name']}] {self.tr('Backup finished.')}")

def progress_event(self, fmt):
Expand Down

0 comments on commit b647d5d

Please sign in to comment.