Skip to content

Commit

Permalink
sonar issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ozkanpakdil committed Jun 23, 2023
1 parent 785c3d6 commit 3212a5d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/main/java/com/mascix/swaggerific/ui/MainController.java
Original file line number Diff line number Diff line change
Expand Up @@ -430,17 +430,14 @@ public void onOpening() {
}
}

@SneakyThrows
public void openSettings(ActionEvent actionEvent) {
try {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/com/mascix/swaggerific/edit/settings.fxml"));
Parent root1 = fxmlLoader.load();
Stage stage = new Stage();
stage.initOwner(mainBox.getScene().getWindow());
stage.initModality(Modality.WINDOW_MODAL); // make the settings window focused only.
stage.setScene(new Scene(root1));
stage.show();
} catch (Exception e) {
e.printStackTrace();
}
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/com/mascix/swaggerific/edit/settings.fxml"));
Parent root1 = fxmlLoader.load();
Stage stage = new Stage();
stage.initOwner(mainBox.getScene().getWindow());
stage.initModality(Modality.WINDOW_MODAL); // make the settings window focused only.
stage.setScene(new Scene(root1));
stage.show();
}
}

0 comments on commit 3212a5d

Please sign in to comment.