CLI: Toasts & Tweaks (#2702)

* progress: cli toasts

* forgot the html

* progress: toasts

* revision: don't open splash on desktop

* fix: fmt, spellcheck
This commit is contained in:
Miles Murgaw authored and GitHub committed 2024-07-25 14:38:45 -07:00
1 parent beeee0dda1
commit bd58a92441
10 files changed
+363 -31

No files matched your search

+7 -3
View File
@@ -330,8 +330,10 @@ impl App {
not(target_os = "ios")
))]
pub fn handle_hot_reload_msg(&mut self, msg: dioxus_hot_reload::DevserverMsg) {
use dioxus_hot_reload::DevserverMsg;
match msg {
dioxus_hot_reload::DevserverMsg::HotReload(hr_msg) => {
DevserverMsg::HotReload(hr_msg) => {
for webview in self.webviews.values_mut() {
dioxus_hot_reload::apply_changes(&mut webview.dom, &hr_msg);
webview.poll_vdom();
@@ -343,11 +345,13 @@ impl App {
}
}
}
dioxus_hot_reload::DevserverMsg::FullReload => {
DevserverMsg::FullReloadCommand
| DevserverMsg::FullReloadStart
| DevserverMsg::FullReloadFailed => {
// usually only web gets this message - what are we supposed to do?
// Maybe we could just binary patch ourselves in place without losing window state?
}
dioxus_hot_reload::DevserverMsg::Shutdown => {
DevserverMsg::Shutdown => {
self.control_flow = ControlFlow::Exit;
}
}