mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-19 03:01:27 +00:00
optimized code
This commit is contained in:
@@ -63,7 +63,7 @@ public class ErrorController implements FxController {
|
||||
private final Environment environment;
|
||||
|
||||
private final BooleanProperty copiedDetails = new SimpleBooleanProperty();
|
||||
private final ObjectProperty matchingErrorDiscussion = new SimpleObjectProperty();
|
||||
private final ObjectProperty<ErrorDiscussion> matchingErrorDiscussion = new SimpleObjectProperty<>();
|
||||
private final BooleanExpression errorSolutionFound = matchingErrorDiscussion.isNotNull();
|
||||
private final BooleanProperty isLoadingHttpResponse = new SimpleBooleanProperty();
|
||||
|
||||
@@ -101,8 +101,10 @@ public class ErrorController implements FxController {
|
||||
@FXML
|
||||
public void showSolution() {
|
||||
if (matchingErrorDiscussion.isNotNull().get()) {
|
||||
ErrorDiscussion ed = (ErrorDiscussion) matchingErrorDiscussion.get();
|
||||
application.getHostServices().showDocument(ed.url);
|
||||
var discussion = matchingErrorDiscussion.get();
|
||||
if (discussion != null) {
|
||||
application.getHostServices().showDocument(matchingErrorDiscussion.get().url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user