summaryrefslogtreecommitdiffstats
path: root/osdep/mac/app_hub.swift
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/mac/app_hub.swift')
-rw-r--r--osdep/mac/app_hub.swift7
1 files changed, 7 insertions, 0 deletions
diff --git a/osdep/mac/app_hub.swift b/osdep/mac/app_hub.swift
index a668948603..e77bf9381e 100644
--- a/osdep/mac/app_hub.swift
+++ b/osdep/mac/app_hub.swift
@@ -70,4 +70,11 @@ class AppHub: NSObject {
remote?.stop()
#endif
}
+
+ func getIcon() -> NSImage {
+ guard let iconData = app_bridge_icon(), let icon = NSImage(data: iconData) else {
+ return NSImage(size: NSSize(width: 1, height: 1))
+ }
+ return icon
+ }
}