Before a float was passed to `QPoint(int, int)`. While this worked fine, on some machines it lead to an error.
Fixes#1535.
* src/vorta/views/main_window.py : cast division value to int.
Start `borg check` with option `--progress` and handle the progress messages. Now the long repo check phase won't look like a freeze in vorta because vorta will show status updates. Fixes#1497.
Co-authored-by: yfprojects <62463991+real-yfprojects@users.noreply.github.com>
Schedules get missed, if system has been in hibernation/sleep state as
described in https://github.com/borgbase/vorta/issues/1214
Although, timers should be refreshed every 15min, it seems that all timers get
deranged by sleep state and schedules is still missed in most cases. This seems
to be a general issue with the underlying QTimer implementation.
This fix doesn't distinguish host OS and has only by tested on Linux.
If 'org.freedesktop.login1.Manager' is not available, Vorta simple doesn't
get notified if system awakes again. No no impact on other OS is expected
Co-authored-by: yfprojects <62463991+real-yfprojects@users.noreply.github.com>
Fixes#1488.
Closing deletes the temp file. This will be done by `BorgJob.run` after running the command.
* src/vorta/borg/extract.py (BorgExtractJob.prepare): Remove call to `close` of temporary file.
In python `+` takes precedence over the `if-else` operator.
Therefore brackets are needed around the latter.
* src/vorta/borg/list_archive.py (BorgListArchiveJob.prepare)
The second version of the checkout action is no longer supported by Github Actions because it uses Node.js 12.
* .github/workflows/build-macos.yml
* .github/workflows/test.yml
First element with index 0 is always the 'unset' option with data `None`.
* src/vorta/views/repo_tab.py (RepoTab.set_repos): Add element.
* src/vorta/views/repo_tab.py (RepoTab.repo_unlink_action): Handle the first element as unset.
* src/vorta/views/repo_tab.py (RepoTab.copy_URL_action): Handle unset state.
* tests/test_repo.py (test_repo_unlink): Fix test.
Co-authored-by: real-yfprojects <real-yfprojects@users.noreply.github.com>
This should help debugging #1304.
Co-authored-by: real-yfprojects <real-yfprojects@users.noreply.github.com>
Co-authored-by: Manu <3916435+m3nu@users.noreply.github.com>
* src/vorta/assets/UI/repotab.ui : Name `frameRepoSettings` and `layoutSSHKey`.
* src/vorta/views/repo_tab.py (RepoTab.init_repo_stats): Disable `frameRepoSettings` if no repo is selected.
Disable widgets in `layoutSSHKey` in case of a local repository except from `bAddSSHKey` so the
the user can add a key for a adding a repo.
Co-authored-by: real-yfprojects <real-yfprojects@users.noreply.github.com>
This adds trailing lines to files,
removes trailing white space in all the other lines and unifies line endings.
Additionally it formats the test code with `black`.
These include flake8 linting, black and isort formatting
as well as some general hooks with minor checks.
* .pre-commit-config.yaml
* pyproject.toml : Run black on test files also.