mirror of
https://github.com/cryptomator/cryptomator.git
synced 2024-11-23 12:09:45 +00:00
sonar cloud issues solved
This commit is contained in:
parent
7b0f616747
commit
e9c464ba8f
@ -10,7 +10,6 @@ import org.cryptomator.ui.common.FxController;
|
||||
import javax.inject.Inject;
|
||||
import javafx.application.Application;
|
||||
import javafx.beans.binding.Bindings;
|
||||
import javafx.beans.binding.BooleanExpression;
|
||||
import javafx.beans.value.ObservableValue;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.ChoiceBox;
|
||||
|
@ -87,7 +87,7 @@ public class UnlockWorkflow extends Task<Void> {
|
||||
});
|
||||
}
|
||||
|
||||
private void handleFuseRestartRequiredError(FuseRestartRequiredException fRRE) {
|
||||
private void handleFuseRestartRequiredError() {
|
||||
Platform.runLater(() -> {
|
||||
window.setScene(fuseRestartRequiredScene.get());
|
||||
window.show();
|
||||
@ -124,8 +124,8 @@ public class UnlockWorkflow extends Task<Void> {
|
||||
Throwable throwable = super.getException();
|
||||
if(throwable instanceof IllegalMountPointException impe) {
|
||||
handleIllegalMountPointError(impe);
|
||||
} else if (throwable instanceof FuseRestartRequiredException e) {
|
||||
handleFuseRestartRequiredError(e);
|
||||
} else if (throwable instanceof FuseRestartRequiredException _) {
|
||||
handleFuseRestartRequiredError();
|
||||
} else {
|
||||
handleGenericError(throwable);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user