Skip to content

Commit

Permalink
Use icon caching for system tray.
Browse files Browse the repository at this point in the history
This changelist declares the icons to be used by the system tray so that
the tray logic can pre-fetch the resources during init.
  • Loading branch information
brycerocky authored and ReenigneArcher committed Mar 10, 2024
1 parent cb4bfaa commit a775eeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/system_tray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ namespace system_tray {
{ .text = "Restart", .cb = tray_restart_cb },
{ .text = "Quit", .cb = tray_quit_cb },
{ .text = nullptr } },
.iconPathCount = 4,
.allIconPaths = {TRAY_ICON, TRAY_ICON_LOCKED, TRAY_ICON_PLAYING, TRAY_ICON_PAUSING},
};

/**
Expand Down
2 changes: 1 addition & 1 deletion third-party/tray
Submodule tray updated 2 files
+2 −0 tray.h
+92 −17 tray_windows.c

0 comments on commit a775eeb

Please sign in to comment.