mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-26 04:03:29 +03:00
refactor(api): change button_state
to camelCase (#11114)
This commit is contained in:
parent
e08c4e6888
commit
948772a657
6
.changes/button-state-camel-case.md
Normal file
6
.changes/button-state-camel-case.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@tauri-apps/api": patch:breaking
|
||||
"tauri": patch:bug
|
||||
---
|
||||
|
||||
Change the `button_state` tray event field to camelCase `buttonState`.
|
@ -79,6 +79,7 @@ impl From<tray_icon::MouseButton> for MouseButton {
|
||||
#[non_exhaustive]
|
||||
pub enum TrayIconEvent {
|
||||
/// A click happened on the tray icon.
|
||||
#[serde(rename_all = "camelCase")]
|
||||
Click {
|
||||
/// Id of the tray icon which triggered this event.
|
||||
id: TrayIconId,
|
||||
|
@ -26,7 +26,7 @@ export interface TrayIconClickEvent {
|
||||
/** Mouse button that triggered this event. */
|
||||
button: MouseButton
|
||||
/** Mouse button state when this event was triggered. */
|
||||
button_state: MouseButtonState
|
||||
buttonState: MouseButtonState
|
||||
}
|
||||
|
||||
/** A double click happened on the tray icon. **Windows Only** */
|
||||
|
Loading…
Reference in New Issue
Block a user