-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core/tauri): add
try_get_item
for SystemTray and WindowMenu, c…
…loses #5491 (#6408) * feat: try_get_item() for window menu Add a method in the MenuHandle struct, that will return an Optional MenuItemHandle feat: try_get_item() for systemtray Add a method in the SystemTrayHandle struct, that will return an Optional SystemTrayMenuItemHandle docs: features documented in ./changes/minor.md fix: suggested changes fix CI * Update .changes/tray_get_item.md ---------
- Loading branch information
1 parent
2c1fd57
commit 441f964
Showing
3 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'tauri': minor | ||
--- | ||
|
||
Add `MenuHandle::try_get_item` and `SystemTrayHandle::try_get_item` which returns a `Option` instead of panicking. |
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