Skip to content

Commit bdea85f

Browse files
committed
Use Application Modal instead of always on top
1 parent 93f6507 commit bdea85f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/main/java/edu/wpi/grip/ui/MainWindowController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import javafx.scene.layout.Region;
2929
import javafx.stage.FileChooser;
3030
import javafx.stage.FileChooser.ExtensionFilter;
31+
import javafx.stage.Modality;
3132
import javafx.stage.Stage;
3233
import org.controlsfx.control.StatusBar;
3334

@@ -217,7 +218,7 @@ public void showProjectAboutDialog() throws IOException {
217218
Parent about = FXMLLoader.load(Main.class.getResource("AboutDialog.fxml"));
218219
Stage aboutDialogStage = new Stage();
219220
aboutDialogStage.setScene(new Scene(about));
220-
aboutDialogStage.setAlwaysOnTop(true);
221+
aboutDialogStage.initModality(Modality.APPLICATION_MODAL);
221222
aboutDialogStage.show();
222223
}
223224

0 commit comments

Comments
 (0)