diff --git a/src/main/java/org/cryptomator/integrations/tray/TrayMenuController.java b/src/main/java/org/cryptomator/integrations/tray/TrayMenuController.java index 85f8c63..5cdd413 100644 --- a/src/main/java/org/cryptomator/integrations/tray/TrayMenuController.java +++ b/src/main/java/org/cryptomator/integrations/tray/TrayMenuController.java @@ -3,8 +3,7 @@ import org.cryptomator.integrations.common.IntegrationsLoader; import org.jetbrains.annotations.ApiStatus; -import java.io.IOException; -import java.io.InputStream; +import java.net.URI; import java.util.List; import java.util.Optional; @@ -23,20 +22,20 @@ static Optional get() { /** * Displays an icon on the system tray. * - * @param imageData What image to show + * @param imageUri What image to show * @param defaultAction Action to perform when interacting with the icon directly instead of its menu * @param tooltip Text shown when hovering * @throws TrayMenuException thrown when adding the tray icon failed */ - void showTrayIcon(byte[] imageData, Runnable defaultAction, String tooltip) throws TrayMenuException; + void showTrayIcon(URI imageUri, Runnable defaultAction, String tooltip) throws TrayMenuException; /** * Updates the icon on the system tray. * - * @param imageData What image to show + * @param imageUri What image to show * @throws IllegalStateException thrown when called before an icon has been added */ - void updateTrayIcon(byte[] imageData); + void updateTrayIcon(URI imageUri); /** * Show the given options in the tray menu.