Fixing default for no close-requested handler

This commit is contained in:
Jonathan Johnson 2024-07-08 16:22:15 -07:00
parent 24291772de
commit 4d6196f4e7
No known key found for this signature in database
GPG key ID: A66D6A34D6620579

View file

@ -824,7 +824,7 @@ where
&& window
.close_requested
.as_mut()
.map_or(false, |close| close.lock().invoke(()));
.map_or(true, |close| close.lock().invoke(()));
*should_close
}