mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 05:21: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),
|
F: 'static + FnMut(Event<'_, T>, &RootEventLoopWindowTarget<T>, &mut ControlFlow),
|
||||||
{
|
{
|
||||||
unsafe {
|
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\
|
`EventLoop` cannot be `run` after a call to `UIApplicationMain` on iOS\n\
|
||||||
Note: `EventLoop::run` calls `UIApplicationMain` on iOS",
|
Note: `EventLoop::run` calls `UIApplicationMain` on iOS",
|
||||||
|
|
Loading…
Reference in a new issue