renamed method and code refactored

This commit is contained in:
Jan-Peter Klein 2024-06-14 11:07:21 +02:00
parent 7484744038
commit 8a8617b480
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E

View File

@ -76,26 +76,26 @@ public class FxApplication {
appWindows.checkAndShowUpdateReminderWindow();
}
handleDokanySupportEndAndShowDialog();
migrateAndInformDokanyRemoval();
launchEventHandler.startHandlingLaunchEvents();
autoUnlocker.tryUnlockForTimespan(2, TimeUnit.MINUTES);
}
private void handleDokanySupportEndAndShowDialog() {
private void migrateAndInformDokanyRemoval() {
var dokanyProviderId = "org.cryptomator.frontend.dokany.mount.DokanyMountProvider";
boolean dokanyFound = false;
if (settings.mountService.getValueSafe().contains(dokanyProviderId)) {
if (settings.mountService.getValueSafe().equals(dokanyProviderId)) {
dokanyFound = true;
settings.mountService.set(null);
}
for (VaultSettings vaultSettings : settings.directories) {
if (vaultSettings.mountService.getValueSafe().contains(dokanyProviderId)) {
if (vaultSettings.mountService.getValueSafe().equals(dokanyProviderId)) {
dokanyFound = true;
vaultSettings.mountService.set(null);
}
}
if(dokanyFound) {
if (dokanyFound) {
appWindows.showDokanySupportEndWindow();
}
}