Rename LoopDestroyed to LoopExiting

Considering the possibility of re-running an event loop via run_ondemand
then it's more correct to say that the loop is about to exit without
assuming it's going to be destroyed.
This commit is contained in:
Robert Bragg authored and Kirill Chibisov committed 2023-08-15 13:10:02 +04:00
1 parent 7de2bc7ae6
commit 3bf0fa9ec8
15 files changed
+28 -30

No files matched your search

@@ -202,7 +202,7 @@ impl<T: 'static> EventLoop<T> {
let mut dummy = self.control_flow;
sticky_exit_callback(
Event::LoopDestroyed,
Event::LoopExiting,
self.window_target(),
&mut dummy,
&mut callback,
+1 -1
View File
@@ -492,7 +492,7 @@ impl<T: 'static> EventLoop<T> {
let mut dummy = self.control_flow;
sticky_exit_callback(
Event::LoopDestroyed,
Event::LoopExiting,
self.window_target(),
&mut dummy,
&mut callback,