generated from jbolda/personal-tray-app
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jbolda/fix-tauri-api-interactions
Improve TrayIcon and State Interactions
- Loading branch information
Showing
25 changed files
with
3,087 additions
and
3,594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/node_modules/@tauri-apps/plugin-positioner/dist-js/index.js b/node_modules/@tauri-apps/plugin-positioner/dist-js/index.js | ||
index fe3c7b2..b68b31b 100644 | ||
--- a/node_modules/@tauri-apps/plugin-positioner/dist-js/index.js | ||
+++ b/node_modules/@tauri-apps/plugin-positioner/dist-js/index.js | ||
@@ -37,13 +37,11 @@ async function moveWindow(to) { | ||
}); | ||
} | ||
async function handleIconState(event) { | ||
- const size = {}; | ||
- size[`${event.rect.size.type}`] = { | ||
+ const size = { | ||
width: event.rect.size.width, | ||
height: event.rect.size.height | ||
}; | ||
- const position = {}; | ||
- position[`${event.rect.position.type}`] = { | ||
+ const position = { | ||
x: event.rect.position.x, | ||
y: event.rect.position.y | ||
}; |
Oops, something went wrong.