egui/crates
pan93412 860dac69da
eframe: Only run_return twice on Windows (#3053)
The approach of #1889 may remove observers in a view
twice, which produces the Obj-C Exception:

    Cannot remove an observer <...> for the key path
    "nextResponder" from <WinitView ...> because
    it is not registered as an observer.

The above message can only be seen when attaching the
application to debugger. Users normally see:

    [1]    *** trace trap  cargo run

This commit fixes it by only running `event_loop.run_return()`
twice on Windows. Besides:

* We have set `ControlFlow::Exit` on `Event::LoopDestroyed`,
  `EventResult::Exit` and on error; therefore, it is safe
  to not calling `set_exit()`.
* This commit also fix the persistence function in macOS.
  It can't store the content in Memory due to this exception.

Fixed: #2768 (eframe: "App quit unexpectedly" on macOS)

Signed-off-by: pan93412 <pan93412@gmail.com>
2023-06-05 14:57:21 +02:00
..
ecolor Release 0.22.0 - A plethora of small improvements 2023-05-23 19:58:04 +02:00
eframe eframe: Only run_return twice on Windows (#3053) 2023-06-05 14:57:21 +02:00
egui Release 0.22.0 - A plethora of small improvements 2023-05-23 19:58:04 +02:00
egui-wgpu Release 0.22.0 - A plethora of small improvements 2023-05-23 19:58:04 +02:00
egui-winit Release 0.22.0 - A plethora of small improvements 2023-05-23 19:58:04 +02:00
egui_demo_app Release 0.22.0 - A plethora of small improvements 2023-05-23 19:58:04 +02:00
egui_demo_lib Release 0.22.0 - A plethora of small improvements 2023-05-23 19:58:04 +02:00
egui_extras Release 0.22.0 - A plethora of small improvements 2023-05-23 19:58:04 +02:00
egui_glium Release 0.22.0 - A plethora of small improvements 2023-05-23 19:58:04 +02:00
egui_glow Release 0.22.0 - A plethora of small improvements 2023-05-23 19:58:04 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Release 0.22.0 - A plethora of small improvements 2023-05-23 19:58:04 +02:00
epaint Release 0.22.0 - A plethora of small improvements 2023-05-23 19:58:04 +02:00