mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
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:
5
.changes/tauri-menu-predefined-close-wiwndow.md
Normal file
5
.changes/tauri-menu-predefined-close-wiwndow.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": "patch:bug"
|
||||
---
|
||||
|
||||
Fix incorrect menu item for `PredefinedMenuItem::close_window`
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user