1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

Make sure to use a Window icon on Windows 10

This commit is contained in:
Reinhard Pointner 2018-03-06 14:49:16 +07:00
parent 500c545467
commit 91eb5b2c95

View File

@ -45,6 +45,11 @@ public class GettingStartedStage {
alert.setHeaderText("Hello! Do you need help Getting Started?"); alert.setHeaderText("Hello! Do you need help Getting Started?");
alert.setContentText("If you have never used FileBot before, please have a look at the video tutorials first."); alert.setContentText("If you have never used FileBot before, please have a look at the video tutorials first.");
if (isWindowsApp()) {
Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
stage.getIcons().setAll(ResourceManager.getApplicationIconResources().map(URL::toString).map(Image::new).toArray(Image[]::new));
}
Optional<ButtonType> result = alert.showAndWait(); Optional<ButtonType> result = alert.showAndWait();
if (result.get() == ButtonType.OK) { if (result.get() == ButtonType.OK) {
openURI(getEmbeddedHelpURL()); openURI(getEmbeddedHelpURL());