File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,9 @@ async fn application(mut ctx: ApplicationContext) -> Result<()> {
305
305
306
306
if let Some ( window_event) = event. window_event_for_id ( window. id ( ) ) {
307
307
match application. update ( window_event) {
308
- UpdateResponse :: Exit => return Ok ( ( ) ) ,
308
+ UpdateResponse :: Exit => {
309
+ return Ok ( ( ) ) ;
310
+ }
309
311
UpdateResponse :: Continue => { }
310
312
}
311
313
}
Original file line number Diff line number Diff line change @@ -272,7 +272,9 @@ impl Logs {
272
272
}
273
273
274
274
match self . application . update ( window_event) {
275
- UpdateResponse :: Exit => return UpdateResponse :: Exit ,
275
+ UpdateResponse :: Exit => {
276
+ return UpdateResponse :: Exit ;
277
+ }
276
278
UpdateResponse :: Continue => { }
277
279
}
278
280
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ use crate::{
33
33
#[ derive( Debug ) ]
34
34
pub struct ApplicationContext {
35
35
pub event_receiver : UnboundedReceiver < ShellEvent > ,
36
+ // Used for stuff that needs to run on the event loop thread. Like Window creation, for example.
36
37
pub event_loop_proxy : EventLoopProxy < ShellRequest > ,
37
38
pub tickery : Arc < Tickery > ,
38
39
You can’t perform that action at this time.
0 commit comments