We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6ca888 commit f98ce5aCopy full SHA for f98ce5a
.changes/tauri-menu-predefined-close-wiwndow.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": "patch:bug"
3
4
+
5
+Fix incorrect menu item for `PredefinedMenuItem::close_window`
core/tauri/src/menu/predefined.rs
@@ -212,7 +212,7 @@ impl<R: Runtime> PredefinedMenuItem<R> {
212
///
213
/// - **Linux:** Unsupported.
214
pub fn close_window<M: Manager<R>>(manager: &M, text: Option<&str>) -> Self {
215
- let inner = muda::PredefinedMenuItem::show_all(text);
+ let inner = muda::PredefinedMenuItem::close_window(text);
216
Self {
217
id: inner.id().clone(),
218
inner,
0 commit comments