Fix tab FXML paths
This commit is contained in:
parent
661823219c
commit
efbca9cbc9
@ -204,8 +204,8 @@ public final class ChatScene implements Restorable {
|
|||||||
newContactButton.setDisable(!online);
|
newContactButton.setDisable(!online);
|
||||||
if (online) try {
|
if (online) try {
|
||||||
Tooltip.uninstall(contactSpecificOnlineOperations, onlyIfOnlineTooltip);
|
Tooltip.uninstall(contactSpecificOnlineOperations, onlyIfOnlineTooltip);
|
||||||
contactSearchTab.setContent(FXMLLoader.load(new File("src/main/resources/fxml/ContactSearchTab.fxml").toURI().toURL()));
|
contactSearchTab.setContent(new FXMLLoader().load(getClass().getResourceAsStream("/fxml/ContactSearchTab.fxml")));
|
||||||
groupCreationTab.setContent(FXMLLoader.load(new File("src/main/resources/fxml/GroupCreationTab.fxml").toURI().toURL()));
|
groupCreationTab.setContent(new FXMLLoader().load(getClass().getResourceAsStream("/fxml/GroupCreationTab.fxml")));
|
||||||
} catch (final IOException e2) {
|
} catch (final IOException e2) {
|
||||||
logger.log(Level.SEVERE, "An error occurred when attempting to load tabs: ", e2);
|
logger.log(Level.SEVERE, "An error occurred when attempting to load tabs: ", e2);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user