Skip to content
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

Fix 2981 #2985

Merged
merged 8 commits into from Jul 5, 2023
Merged

Fix 2981 #2985

merged 8 commits into from Jul 5, 2023

Conversation

JaniruTEC
Copy link
Contributor

@JaniruTEC JaniruTEC commented Jul 4, 2023

Closes #2981

This PR adds support for showing either the "Open Vault Options" or the "Open Preferences" button in the Invalid mountpoint dialog, depending on the actual type of invalid custom mountpoint.
This required refactoring the internal logic of how the dialog is populated and moving the dagger bindings for VaultOptionsComponent and HealthCheckComponent from MainWindowModule to FxApplicationModule.
The latter change can be seen below:

Changes in dagger graph introduced by e5047c2
Before:
tree_org cryptomator launcher CryptomatorComponent
After:
tree_org cryptomator launcher CryptomatorComponent

Furthermore the utility method #showVaultOptionsWindow() was added to FxApplicationWindows to facilitate easy access to the vault options. This method is also subject of #2988.

@JaniruTEC JaniruTEC requested a review from infeo July 4, 2023 14:24
Copy link
Member

@infeo infeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the naming in UnlockInvalidMountpointController:

I thought longer about keeping just the boolean showPreferences() function, because what we actually doin is deciding between two options and not just swichting on option off. Hence, please refactor to a proper decision model (create enum, add another function showVaultOptions() etc)

@JaniruTEC
Copy link
Contributor Author

JaniruTEC commented Jul 5, 2023

Regarding the naming in UnlockInvalidMountpointController:

I thought longer about keeping just the boolean showPreferences() function, because what we actually doin is deciding between two options and not just swichting on option off. Hence, please refactor to a proper decision model (create enum, add another function showVaultOptions() etc)

Resolved by a3c953d.

@infeo infeo added this to the 1.10.0 milestone Jul 5, 2023
@JaniruTEC JaniruTEC merged commit c30c90d into develop Jul 5, 2023
6 checks passed
@JaniruTEC JaniruTEC deleted the feature/2981-differ-options-preferences branch July 5, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Open vault options/application preferences based on type of invalid mountpoint
2 participants