On Windows, fix icons specified on WindowBuilder not taking effect for windows created after the first one (#2530)

This commit is contained in:
Amr Bashir 2022-11-06 22:30:55 +02:00 committed by GitHub
parent 8669c2e8df
commit 50bbc85dc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 19 deletions

View file

@ -123,7 +123,6 @@ pub enum ImeState {
impl WindowState {
pub(crate) fn new(
attributes: &WindowAttributes,
taskbar_icon: Option<Icon>,
scale_factor: f64,
current_theme: Theme,
preferred_theme: Option<Theme>,
@ -140,7 +139,7 @@ impl WindowState {
max_size: attributes.max_inner_size,
window_icon: attributes.window_icon.clone(),
taskbar_icon,
taskbar_icon: None,
saved_window: None,
scale_factor,