-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add link to the logs folder in borg warnings #1609
feat: add link to the logs folder in borg warnings #1609
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What purpose serves the last commit? You don't have to modify any translation files. That's all done automatically in preparation of a release. There is a rule for that in our make file.
You will need to use translate
instead of trans_late
else the translations won't be loaded at runtime. Please tell me if any part of the contributing docs is unclear.
This reverts commit dfc5bff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my local testing Qt won't recognise the translate statements spanning over multiple lines
Luckily it seems to work again/with this PR.
…/vorta into feat/link-logs-in-warnings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
…k-logs-in-warnings
…/vorta into feat/link-logs-in-warnings
@diivi Can you rebase onto master and adjust this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as advertised. 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess the checking for rc 0, 1, 2 could be improved, but that is not in scope of this PR.
0 == OK
1 == Warning
2 == Error
Any messages derived from this should use a corresponding wording.
In case a borg job finishes with warning, vorta will display it and tell the user to have a look in the logs. This adds a clickable link to the log message that opens the default file explorer at the log location. * src/vorta/application.py (VortaApp.check_failed_response): Improve wording of warning message and link logs. * src/vorta/borg/create.py (BorgCreateJob.process_result): Link logs. * src/vorta/borg/compact.py (BorgCompactJob.finished_event): ^^ * src/vorta/borg/check.py (BorgCheckJob.finished_event): ^^ * src/vorta/assets/UI/mainwindow.ui : Enable `openExternalLinks` for `progressText` label.
Description
Adds a link to the vorta logs folder on the user's device in the
progressText
qLabel.Please let me know in what state I should leave the strings for translation, thanks.
Related Issue
#1486
Motivation and Context
Easier to open the logs folder without having to look for it (better UX).
Screenshots (if appropriate):
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.