fix: build user interfaces in window id order
This commit is contained in:
parent
5e2b580791
commit
5716b9a691
1 changed files with 6 additions and 6 deletions
|
|
@ -69,6 +69,8 @@ use crate::runtime::user_interface::{self, UserInterface};
|
||||||
use crate::runtime::{Action, Task};
|
use crate::runtime::{Action, Task};
|
||||||
|
|
||||||
use program::Program;
|
use program::Program;
|
||||||
|
#[cfg(feature = "program")]
|
||||||
|
pub use program::Program;
|
||||||
use window::WindowManager;
|
use window::WindowManager;
|
||||||
|
|
||||||
use rustc_hash::FxHashMap;
|
use rustc_hash::FxHashMap;
|
||||||
|
|
@ -2639,10 +2641,10 @@ where
|
||||||
.and_then(|window| theme::Base::palette(window.state.theme()))
|
.and_then(|window| theme::Base::palette(window.state.theme()))
|
||||||
});
|
});
|
||||||
|
|
||||||
cached_user_interfaces
|
window_manager
|
||||||
.drain()
|
.iter_mut()
|
||||||
.filter_map(|(id, cache)| {
|
.filter_map(|(id, window)| {
|
||||||
let window = window_manager.get_mut(id)?;
|
let cache = cached_user_interfaces.remove(&id)?;
|
||||||
|
|
||||||
Some((
|
Some((
|
||||||
id,
|
id,
|
||||||
|
|
@ -2715,7 +2717,5 @@ fn system_information(
|
||||||
graphics_backend: graphics.backend,
|
graphics_backend: graphics.backend,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[cfg(feature = "program")]
|
|
||||||
pub use program::Program;
|
|
||||||
|
|
||||||
pub use platform_specific::*;
|
pub use platform_specific::*;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue