mirror of
https://github.com/italicsjenga/muda.git
synced 2024-12-23 12:01:31 +11:00
parent
059fceb130
commit
f3883ee2d4
5
.changes/windows-about-menu-item.md
Normal file
5
.changes/windows-about-menu-item.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"muda": "patch"
|
||||
---
|
||||
|
||||
On Windows, fix panic when click a menu item while the `PredefinedMenuItem::about` dialog is open.
|
|
@ -1154,7 +1154,14 @@ unsafe extern "system" fn menu_subclass_proc(
|
|||
"About {}",
|
||||
metadata.name.as_deref().unwrap_or_default()
|
||||
));
|
||||
MessageBoxW(hwnd, message.as_ptr(), title.as_ptr(), MB_ICONINFORMATION);
|
||||
std::thread::spawn(move || {
|
||||
MessageBoxW(
|
||||
hwnd,
|
||||
message.as_ptr(),
|
||||
title.as_ptr(),
|
||||
MB_ICONINFORMATION,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
_ => {}
|
||||
|
|
Loading…
Reference in a new issue