macos: retain menu menu when retrieving it from NSApp
refs: https://github.com/wez/wezterm/issues/2940
This commit is contained in:
1 file changed
+1
-1
@@ -56,7 +56,7 @@ impl Menu {
|
||||
None
|
||||
} else {
|
||||
Some(Self {
|
||||
menu: StrongPtr::new(existing),
|
||||
menu: StrongPtr::retain(existing),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user