File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @tauri-apps/api " : patch:breaking
3+ " tauri " : patch:bug
4+ ---
5+
6+ Change the ` button_state ` tray event field to camelCase ` buttonState ` .
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ impl From<tray_icon::MouseButton> for MouseButton {
7979#[ non_exhaustive]
8080pub enum TrayIconEvent {
8181 /// A click happened on the tray icon.
82+ #[ serde( rename_all = "camelCase" ) ]
8283 Click {
8384 /// Id of the tray icon which triggered this event.
8485 id : TrayIconId ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export interface TrayIconClickEvent {
2626 /** Mouse button that triggered this event. */
2727 button : MouseButton
2828 /** Mouse button state when this event was triggered. */
29- button_state : MouseButtonState
29+ buttonState : MouseButtonState
3030}
3131
3232/** A double click happened on the tray icon. **Windows Only** */
You can’t perform that action at this time.
0 commit comments