\ No newline at end of file
diff --git a/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-e352710d4e950423/out/built.rs.html b/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-e352710d4e950423/out/built.rs.html
index 777f660aca..3a9c4b7149 100644
--- a/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-e352710d4e950423/out/built.rs.html
+++ b/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-e352710d4e950423/out/built.rs.html
@@ -112,7 +112,7 @@
/// The output of `rustdoc -V`pubconstRUSTDOC_VERSION: &str="rustdoc 1.47.0 (18bf6b4f0 2020-10-07)";
/// The built-time in RFC2822, UTC
-pubconstBUILT_TIME_UTC: &str="Thu, 29 Oct 2020 23:10:43 +0000";
+pubconstBUILT_TIME_UTC: &str="Thu, 29 Oct 2020 23:38:44 +0000";
/// The target architecture, given by `cfg!(target_arch)`.pubconstCFG_TARGET_ARCH: &str="x86_64";
/// The endianness, given by `cfg!(target_endian)`.
diff --git a/rustdoc/src/widgetry/app_state.rs.html b/rustdoc/src/widgetry/app_state.rs.html
index 852ca28d51..03f42cdc4a 100644
--- a/rustdoc/src/widgetry/app_state.rs.html
+++ b/rustdoc/src/widgetry/app_state.rs.html
@@ -191,6 +191,10 @@
190191192
+193
+194
+195
+196
//! A widgetry application splits its state into two pieces: global shared state that lasts for the//! entire lifetime of the application, and a stack of smaller states, only one of which is active
@@ -269,13 +273,17 @@
Transition::Keep=>false,
Transition::KeepWithMouseover=>true,
Transition::Pop=> {
- self.states
- .pop()
- .unwrap()
- .on_destroy(ctx, &mutself.shared_app_state);
+ letmutstate=self.states.pop().unwrap();
+ state.on_destroy(ctx, &mutself.shared_app_state);
ifself.states.is_empty() {
- self.shared_app_state.before_quit(ctx.canvas);
- std::process::exit(0);
+ ifcfg!(target_arch="wasm32") {
+ // Just kidding, don't actually leave.
+ self.states.push(state);
+ // TODO Once PopupMsg is lifted here, add an explanation
+ } else {
+ self.shared_app_state.before_quit(ctx.canvas);
+ std::process::exit(0);
+ }
}
true
}
diff --git a/rustdoc/widgetry/app_state/enum.DrawBaselayer.html b/rustdoc/widgetry/app_state/enum.DrawBaselayer.html
index 158f1b23c1..c69005a332 100644
--- a/rustdoc/widgetry/app_state/enum.DrawBaselayer.html
+++ b/rustdoc/widgetry/app_state/enum.DrawBaselayer.html
@@ -1,5 +1,5 @@
widgetry::app_state::DrawBaselayer - Rust
A widgetry application splits its state into two pieces: global shared state that lasts for the
entire lifetime of the application, and a stack of smaller states, only one of which is active
at a time. For example, imagine an application to view a map. The shared state would include
the map and pre-rendered geometry for it. The individual states might start with a splash
diff --git a/rustdoc/widgetry/app_state/struct.App.html b/rustdoc/widgetry/app_state/struct.App.html
index 6c81623329..0cedba8cc9 100644
--- a/rustdoc/widgetry/app_state/struct.App.html
+++ b/rustdoc/widgetry/app_state/struct.App.html
@@ -4,7 +4,7 @@
pub(crate) shared_app_state: A,
}