Fixes #2120 (plus changes to status info and tray icon active duration)#2142
Fixes #2120 (plus changes to status info and tray icon active duration)#2142mycir wants to merge 4 commits intoborgbase:masterfrom
Conversation
|
Hi, thanks for the PR! Had a quick look and was wondering if it wouldn't be better to use Line 34 in 64586df Old discussion here: https://www.mail-archive.com/pyqt@riverbankcomputing.com/msg16052.html |
|
@m3nu, Silly me, I should have searched for QThread in all files - was thinking about it but didn't want add an import just for this. Yes of course, I'll try and get my head around utils.py as time permits. |
|
@m3nu, please hold. I have a working solution that wraps VortaApp.create_backup_action with an Will commit after I've tidied things up next week - need a break and a hair transplant. |
|
Apologies, tried to make a minor change to 84fbf14 with git commit --amend --no-edit and made a complete hash of it. |
src/vorta/utils.py
Outdated
|
|
||
| def run(self): | ||
| self.decorator_instance(self.wrapped_instance, *self.args, **self.kwargs) | ||
| <<<<<<< HEAD |
|
Apologies for rogue conflict markers. |
Description
Add pre/post backup signals and emit them in BorgCreateJob.pre_post_backup_cmd.
Use them to toggle start/cancel buttons, tray icon active/inactive and provide enhanced status info. Also run VortaApp.create_backup_action/VortaScheduler.create_backup in a new thread to prevent GUI freezing whilst running pre/post backup commands.
Related Issue
#2120
Motivation and Context
I experienced this issue when running pre/post backup commands to mount/unmount a gdrive.
It solves the problem of the backup finished signal occurring before long running post backup commands have completed, preventing the start/cancel buttons being toggled back to their resting state.
How Has This Been Tested?
By running manual and scheduled backups.
Types of changes
Checklist:
I provide my contribution under the terms of the license of this repository and I affirm the Developer Certificate of Origin.