Resume window position/size, watch cargo/dioxus tomls, fix css reverting during hotreloading, allow menubar events to be captured from within dioxus (#2116)

* Fix: css hotreloading being invalidated, watcher not watching cargo/dioxus tomls, add feature to restore window state

* Make clappy hippier

* remove console log

* use simpler css invalidator

* Less flash, remove log on web hotreload

* Fix floating window managed behavior on mac

* clippy...
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-03-20 09:16:18 -07:00
1 parent 44e997f7df
commit e923c6462c
17 files changed
+303 -40

No files matched your search

+2 -4
View File
@@ -50,14 +50,12 @@ pub(crate) fn init() -> UnboundedReceiver<Template> {
.query_selector_all("link[rel=stylesheet]")
.unwrap();
console::log_1(&links.clone().into());
let noise = js_sys::Math::random();
for x in 0..links.length() {
console::log_1(&x.into());
let link: Element = links.get(x).unwrap().unchecked_into();
let href = link.get_attribute("href").unwrap();
_ = link.set_attribute("href", &format!("{}?{}", href, js_sys::Math::random()));
_ = link.set_attribute("href", &format!("{}?{}", href, noise));
}
}
}