1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-01-02 21:25:48 +00:00

Clear contents of log_text after successfull backup (#1626)

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>
This commit is contained in:
Aaditya Sinha 2023-05-19 00:59:59 +05:30 committed by GitHub
parent 82270adf4f
commit d7634e8719
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,7 @@ def process_result(self, result):
).format(LOG_DIR.as_uri()) ).format(LOG_DIR.as_uri())
) )
else: else:
self.app.backup_log_event.emit('', {})
self.app.backup_progress_event.emit(f"[{self.params['profile_name']}] {self.tr('Backup finished.')}") self.app.backup_progress_event.emit(f"[{self.params['profile_name']}] {self.tr('Backup finished.')}")
def progress_event(self, fmt): def progress_event(self, fmt):