Make sure to use a Window icon on Windows 10
This commit is contained in:
parent
500c545467
commit
91eb5b2c95
|
@ -45,6 +45,11 @@ public class GettingStartedStage {
|
|||
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.");
|
||||
|
||||
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();
|
||||
if (result.get() == ButtonType.OK) {
|
||||
openURI(getEmbeddedHelpURL());
|
||||
|
|
Loading…
Reference in New Issue