mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
iOS: fix accidentally flipped assertion (#2629)
* iOS: fix accidentally flipped assertion * No need to update the changelog
This commit is contained in:
parent
9225b2812e
commit
6cf0bf76da
|
@ -114,7 +114,9 @@ impl<T: 'static> EventLoop<T> {
|
|||
F: 'static + FnMut(Event<'_, T>, &RootEventLoopWindowTarget<T>, &mut ControlFlow),
|
||||
{
|
||||
unsafe {
|
||||
let _application = UIApplication::shared(MainThreadMarker::new().unwrap()).expect(
|
||||
let application = UIApplication::shared(MainThreadMarker::new().unwrap());
|
||||
assert!(
|
||||
application.is_none(),
|
||||
"\
|
||||
`EventLoop` cannot be `run` after a call to `UIApplicationMain` on iOS\n\
|
||||
Note: `EventLoop::run` calls `UIApplicationMain` on iOS",
|
||||
|
|
Loading…
Reference in a new issue