Skip to content

Commit 4addcad

Browse files
authored
Merge pull request #14 from VsevolodGolovanov/issue_13_add_update_tray_icon
Closes #13 Add method to update tray icon
2 parents 1de45ce + c7ecab8 commit 4addcad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/org/cryptomator/integrations/tray/TrayMenuController.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ static Optional<TrayMenuController> get() {
3030
*/
3131
void showTrayIcon(byte[] imageData, Runnable defaultAction, String tooltip) throws TrayMenuException;
3232

33+
/**
34+
* Updates the icon on the system tray.
35+
*
36+
* @param imageData What image to show
37+
* @throws IllegalStateException thrown when called before an icon has been added
38+
*/
39+
void updateTrayIcon(byte[] imageData);
40+
3341
/**
3442
* Show the given options in the tray menu.
3543
* <p>

0 commit comments

Comments
 (0)