missed minor fix

macos-click-through
keith 4 years ago
parent d2665c2471
commit ce66c5ed88

@ -259,8 +259,7 @@ impl Editor {
window.anchor_type = WindowAnchor::NorthWest;
window.anchor_row = row as f64;
window.anchor_column = 0.0;
} else {
if let Some(parent) = self.windows.get(&1) {
} else if let Some(parent) = self.windows.get(&1) {
let new_window = Window::new(
grid,
parent.grid.width,
@ -272,7 +271,6 @@ impl Editor {
);
self.windows.insert(grid, new_window);
}
}
if let Some(parent) = self.windows.get_mut(&1) {
parent.children.insert(grid);

Loading…
Cancel
Save