mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
Bump MSRV to 1.64
This commit is contained in:
@@ -371,10 +371,11 @@ impl WindowFlags {
|
||||
|
||||
if diff.contains(WindowFlags::CLOSABLE) || new.contains(WindowFlags::CLOSABLE) {
|
||||
let flags = MF_BYCOMMAND
|
||||
| new
|
||||
.contains(WindowFlags::CLOSABLE)
|
||||
.then(|| MF_ENABLED)
|
||||
.unwrap_or(MF_DISABLED);
|
||||
| if new.contains(WindowFlags::CLOSABLE) {
|
||||
MF_ENABLED
|
||||
} else {
|
||||
MF_DISABLED
|
||||
};
|
||||
|
||||
unsafe {
|
||||
EnableMenuItem(GetSystemMenu(window, 0), SC_CLOSE, flags);
|
||||
|
||||
Reference in New Issue
Block a user