Fix OpenProjectEvent
This commit is contained in:
@@ -106,7 +106,10 @@ public class FiletreeController implements Initializable, Controller {
|
|||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
private void handle(OpenProjectEvent event) {
|
private void handle(OpenProjectEvent event) {
|
||||||
this.showTree(event.getPath().toString());
|
event.getPath().ifPresentOrElse(
|
||||||
|
path -> this.showTree(path.toString()),
|
||||||
|
() -> System.err.println("[ERROR]: OpenProjectEvent was empty!")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
|
|||||||
Reference in New Issue
Block a user