Applied some more suggestions from code review.
This commit is contained in:
@ -184,8 +184,7 @@ public final class ChatScene implements Restorable {
|
||||
contactSearchTab.setContent(FXMLLoader.load(new File("src/main/resources/fxml/ContactSearchTab.fxml").toURI().toURL()));
|
||||
groupCreationTab.setContent(FXMLLoader.load(new File("src/main/resources/fxml/GroupCreationTab.fxml").toURI().toURL()));
|
||||
} catch (Exception e2) {
|
||||
logger.log(Level.SEVERE, "An error occured when attempting to load the tabs!");
|
||||
e2.printStackTrace();
|
||||
logger.log(Level.SEVERE, "An error occured when attempting to load the tabs!", e2);
|
||||
}
|
||||
} else {
|
||||
contactSearchTab.setContent(createOfflineNote());
|
||||
@ -193,7 +192,6 @@ public final class ChatScene implements Restorable {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//Listen to backEvents
|
||||
eventBus.register(BackEvent.class, e -> tabPane.getSelectionModel().select(0));
|
||||
|
||||
@ -504,18 +502,6 @@ public final class ChatScene implements Restorable {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Rotates every element in our application by (at most 4 *) 360° in at most
|
||||
* 2.75s.
|
||||
*
|
||||
* @since Envoy Client v0.1-beta
|
||||
*/
|
||||
@FXML
|
||||
private void doABarrelRoll() {
|
||||
final var random = new Random();
|
||||
doABarrelRoll(random.nextInt(3) + 1, random.nextDouble() * 3 + 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rotates every element in our application by {@code rotations}*360° in
|
||||
* {@code an}.
|
||||
|
Reference in New Issue
Block a user