author | wenzelm |
Tue, 05 Jan 2021 22:05:18 +0100 | |
changeset 73073 | a1d4c9f5207a |
parent 73072 | 7460f92d63fc |
child 73074 | e8b8e9a6330f |
--- a/src/Pure/GUI/gui.scala Tue Jan 05 21:58:00 2021 +0100 +++ b/src/Pure/GUI/gui.scala Tue Jan 05 22:05:18 2021 +0100 @@ -163,8 +163,11 @@ def set_application_icon() { - if (Platform.is_macos) { - Taskbar.getTaskbar.setIconImage(isabelle_image_large()) + if (Platform.is_macos && Taskbar.isTaskbarSupported) { + val taskbar = Taskbar.getTaskbar + if (taskbar.isSupported(Taskbar.Feature.ICON_IMAGE)) { + taskbar.setIconImage(isabelle_image_large()) + } } }