From 91eb5b2c95740450efcc7cbe4ee0e4859060cde5 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 6 Mar 2018 14:49:16 +0700 Subject: [PATCH] Make sure to use a Window icon on Windows 10 --- source/net/filebot/ui/GettingStartedStage.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/net/filebot/ui/GettingStartedStage.java b/source/net/filebot/ui/GettingStartedStage.java index 2cb4f5d8..41f92efa 100644 --- a/source/net/filebot/ui/GettingStartedStage.java +++ b/source/net/filebot/ui/GettingStartedStage.java @@ -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 result = alert.showAndWait(); if (result.get() == ButtonType.OK) { openURI(getEmbeddedHelpURL());