feat(window): refactor and improvements (#426)

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
Amr Bashir
2023-08-07 13:20:17 -03:00
committed by GitHub
co-authored by Lucas Nogueira
parent 5b3210c224
commit 84133b57b8
8 changed files with 323 additions and 330 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
"shell": "patch"
---
Added `Command::arg`, `Command::env` and changed `Command::new` input type.
Added `Command::arg`, `Command::env` and changed `Command::new` input type.
+10
View File
@@ -0,0 +1,10 @@
---
"window": "patch"
"window-js": "patch"
---
The window plugin is recieving a few changes to improve consistency and add new features:
- Removed `appWindow` variable from JS module, use `getCurrent` or `Window.getCurrent`.
- Removed `WindowManager`, `WebviewWindow` and `WebviewHandle` types and merged them into one `Window` type that matches the name of the rust window type.
- Added `Window.getCurrent` and `Window.getAll` which is a convenient method for `getCurrent` and `getAll` functions.