-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[positioner] handleIconState in JS #1822
Conversation
Package Changes Through ad3e1c6There are 8 changes which include cli with prerelease, deep-link with prerelease, dialog with prerelease, sql with prerelease, fs with prerelease, positioner with prerelease, positioner-js with prerelease, updater with prerelease Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
@jbolda that is indeed the case, the Rust type is actually an enum: enum Position {
Physical { .. },
Logical { .. },
} and it will be serialized into {
"Physical or Logical": { .. }
} So we need to at runtime, convert these values into the JS |
#11104) * fix(api): convert `Position` to `PhsyicalPosition` for `TrayIconEvent` ref: tauri-apps/plugins-workspace#1822 (comment) * fix lint * Add missing `doubleClick` event type * change file * update lockfile * Update .changes/api-tray-icon-event-value-mismatch-type.md [skip ci] --------- Co-authored-by: Lucas Fernandes Nogueira <[email protected]>
* fix(positioner): pass correct values through IPC followup to #1822 * build api & remove packageManager field
* [positioner] handleIconState in JS * update readme * fix change file version * fixes --------- Co-authored-by: Lucas Nogueira <[email protected]>
* fix(positioner): pass correct values through IPC followup to tauri-apps#1822 * build api & remove packageManager field
Looks like the JS vs Rust have a mismatch last commit. /cc @lucasfernog |
* [positioner] handleIconState in JS * update readme * fix change file version * fixes --------- Co-authored-by: Lucas Nogueira <[email protected]>
* fix(positioner): pass correct values through IPC followup to tauri-apps#1822 * build api & remove packageManager field
Motivation
We need to handle events to update the icon state in this plugin. Previously, we could only do this in Rust, which meant it was not possible create the TrayIcon in JS with an
action
. This adds a function to handle the same.