Skip to content

Commit

Permalink
Update viewport.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Jun 29, 2024
1 parent b5d25bd commit 685b8c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/egui/src/viewport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1145,16 +1145,18 @@ impl ViewportOutput {
let Self {
parent,
class,
builder,
builder: _,
viewport_ui_cb,
mut commands,
repaint_delay,
} = newer;

self.parent = parent;
self.class = class;
let _ = self.builder.patch(builder); // we ignore the returned command, because `self.builder` will be the basis of a new patch
self.viewport_ui_cb = viewport_ui_cb;

// we ignore the returned command, because `self.builder` will be the basis of a new patch
// let (mut _commands, _recreate_window) = self.builder.patch(builder);
self.commands.append(&mut commands);
self.repaint_delay = self.repaint_delay.min(repaint_delay);
}
Expand Down

0 comments on commit 685b8c2

Please sign in to comment.