Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tf nira dev #22

Merged
merged 6 commits into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
import javafx.scene.web.WebView;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import lombok.SneakyThrows;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
Expand Down Expand Up @@ -665,11 +666,12 @@ public void changed(ObservableValue<? extends Number> observable, Number oldValu
confirmationDialog.setHeaderText(null);
confirmationDialog.setContentText("Please review your details before proceeding to the next section.");

// Set the dialog to non-blocking modality
confirmationDialog.initModality(Modality.NONE);
Stage dialogStage = (Stage) confirmationDialog.getDialogPane().getScene().getWindow();
dialogStage.initModality(Modality.APPLICATION_MODAL);
dialogStage.initStyle(StageStyle.UTILITY);

DialogPane dialogPane = confirmationDialog.getDialogPane();

// Centering the text
Node contentLabel = dialogPane.lookup(".content.label");
if (contentLabel != null) {
Expand Down
Loading