-
Notifications
You must be signed in to change notification settings - Fork 134
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: quick mount #1664
base: master
Are you sure you want to change the base?
feat: quick mount #1664
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.
All actions that open another dialog e.g. a file dialog must end with an ellisis …
self.bMountArchive.clicked.connect(self.bmountarchive_clicked) | ||
except TypeError: | ||
self.bMountArchive.clicked.connect(self.bmountarchive_clicked) |
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.
Why are there two calls to connect
?
@@ -544,11 +595,22 @@ def bmountarchive_refresh(self, icon_only=False): | |||
if not icon_only: | |||
self.bMountArchive.setText(self.tr("Unmount")) | |||
self.bMountArchive.setToolTip(self.tr('Unmount the selected archive from the file system')) | |||
self.bMountArchive.setMenu(None) | |||
try: | |||
self.bMountArchive.clicked.disconnect(self.bmountarchive_clicked) # avoid race condition |
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.
Would bmountarchive_clicked
be connected to the signal multiple times?
This also doesn't disconnect the slot lambda: self.bmountarchive_clicked(quick=True)
afaik.
@@ -366,6 +379,7 @@ def on_selection_change(self, selected=None, deselected=None): | |||
|
|||
# special treatment for dynamic mount/unmount button. | |||
self.bmountarchive_refresh() | |||
self.bmountrepo_refresh() |
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.
Why is that needed? I guess it doesn't hurt either.
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.
To support changing the repository from the dropdown in theRepository
tab. Without this, the Unmount option is visible for all repositories when I restart Vorta and not just the one I mounted.
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.
I think this would make more sense in _toggle_all_buttons
Already has pending feedback. |
What does assigning me mean @m3nu ? |
It means that I'll try to make sure those get merged and don't stay in limbo. |
I misread, @real-yfprojects . Since you already commented a good bit here, I assigned you to push this over the finishing line. So it doesn't stay in limbo, as before. |
Description
Adds a Quick Mount feature to vorta so a user can browse their backups quickly. Improves UX as it will no longer be required to create a folder separately, open it in vorta, and then mount.
I'll add tests too once the code gets reviewed.
Related Issue
Closes #1435
Motivation and Context
UX Improvement and an old feature request.
How Has This Been Tested?
Tested with repos for now. The old functionality is "Mount to Folder" and the new one is "Quick Mount". This option opens the created folder and deletes it when the user unmounts the repository.
Screenshots (if appropriate):
What's Left:
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.