Fix gtk example

This commit is contained in:
Thomas Queiroz 2023-01-28 01:14:02 -03:00
parent f10784f686
commit 72fe3d45f0
No known key found for this signature in database
GPG key ID: 229D2DDF7ECA5F8F

View file

@ -6,7 +6,7 @@ const APP_ID: &str = "dev.leptos.Counter";
// Basic GTK app setup from https://gtk-rs.org/gtk4-rs/stable/latest/book/hello_world.html
fn main() {
_ = create_scope(|cx| {
_ = create_scope(create_runtime(), |cx| {
// Create a new application
let app = Application::builder().application_id(APP_ID).build();