fix: fix incorrect predefined menu item for Close Window (#8328)

* Fix incorrect predefined menu item for Close Window

* change file

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
Michael Howell
2023-12-11 15:29:55 -07:00
committed by GitHub
parent b6ca8885ff
commit f98ce5aa47
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"tauri": "patch:bug"
---
Fix incorrect menu item for `PredefinedMenuItem::close_window`

View File

@@ -212,7 +212,7 @@ impl<R: Runtime> PredefinedMenuItem<R> {
///
/// - **Linux:** Unsupported.
pub fn close_window<M: Manager<R>>(manager: &M, text: Option<&str>) -> Self {
let inner = muda::PredefinedMenuItem::show_all(text);
let inner = muda::PredefinedMenuItem::close_window(text);
Self {
id: inner.id().clone(),
inner,