Skip to content

Commit 1a27e7a

Browse files
committed
Minor changes
1 parent 6b646c8 commit 1a27e7a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

examples/code/examples/code.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ async fn application(mut ctx: ApplicationContext) -> Result<()> {
305305

306306
if let Some(window_event) = event.window_event_for_id(window.id()) {
307307
match application.update(window_event) {
308-
UpdateResponse::Exit => return Ok(()),
308+
UpdateResponse::Exit => {
309+
return Ok(());
310+
}
309311
UpdateResponse::Continue => {}
310312
}
311313
}

examples/logs/examples/logs.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ impl Logs {
272272
}
273273

274274
match self.application.update(window_event) {
275-
UpdateResponse::Exit => return UpdateResponse::Exit,
275+
UpdateResponse::Exit => {
276+
return UpdateResponse::Exit;
277+
}
276278
UpdateResponse::Continue => {}
277279
}
278280

shell/src/application_context.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ use crate::{
3333
#[derive(Debug)]
3434
pub struct ApplicationContext {
3535
pub event_receiver: UnboundedReceiver<ShellEvent>,
36+
// Used for stuff that needs to run on the event loop thread. Like Window creation, for example.
3637
pub event_loop_proxy: EventLoopProxy<ShellRequest>,
3738
pub tickery: Arc<Tickery>,
3839

0 commit comments

Comments
 (0)