Run mundy inside Runtime context in iced_winit
This commit is contained in:
parent
fe009142cf
commit
0b78f2aa5d
1 changed files with 9 additions and 6 deletions
|
|
@ -540,12 +540,15 @@ async fn run_instance<P>(
|
||||||
.boxed(),
|
.boxed(),
|
||||||
);
|
);
|
||||||
|
|
||||||
mundy::Preferences::once_blocking(
|
runtime
|
||||||
mundy::Interest::ColorScheme,
|
.enter(|| {
|
||||||
core::time::Duration::from_millis(200),
|
mundy::Preferences::once_blocking(
|
||||||
)
|
mundy::Interest::ColorScheme,
|
||||||
.map(|preferences| to_mode(preferences.color_scheme))
|
core::time::Duration::from_millis(200),
|
||||||
.unwrap_or_default()
|
)
|
||||||
|
})
|
||||||
|
.map(|preferences| to_mode(preferences.color_scheme))
|
||||||
|
.unwrap_or_default()
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(not(all(feature = "linux-theme-detection", target_os = "linux")))]
|
#[cfg(not(all(feature = "linux-theme-detection", target_os = "linux")))]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue