Skip to content

Commit 0ea09cc

Browse files
committed
Fix Taskbar API is not supported error [ci fast]
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent c713ad5 commit 0ea09cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/nf-console/src/main/nextflow/ui/console/ConsoleRunner.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ class ConsoleRunner implements ConsoleExtension {
7070
}
7171

7272
static void loadDockIcon() {
73-
final URL imageResource = ConsoleRunner.getResource("/nextflow-icon.png");
74-
final defaultToolkit = Toolkit.getDefaultToolkit()
75-
final image = defaultToolkit.getImage(imageResource)
76-
final taskbar = Taskbar.getTaskbar()
7773
try {
74+
final URL imageResource = ConsoleRunner.getResource("/nextflow-icon.png");
75+
final defaultToolkit = Toolkit.getDefaultToolkit()
76+
final image = defaultToolkit.getImage(imageResource)
77+
final taskbar = Taskbar.getTaskbar()
7878
//set icon for mac os (and other systems which do support this method)
7979
taskbar.setIconImage(image)
8080
}

0 commit comments

Comments
 (0)