Removed print statements
This commit is contained in:
@@ -77,23 +77,12 @@ impl RunMenu {
|
||||
let geometry = monitor.geometry();
|
||||
let (_, natural_height, _, _) =
|
||||
window.child().unwrap().measure(Orientation::Vertical, -1);
|
||||
println!("Monitor height: {}", geometry.height());
|
||||
let top_margin = (geometry.height()) / 2;
|
||||
window.set_margin(Edge::Top, top_margin - 100);
|
||||
} else {
|
||||
window.set_valign(Align::Center);
|
||||
}
|
||||
|
||||
content_box
|
||||
.observe_children()
|
||||
.connect_items_changed(move |model, _, _, _| {
|
||||
if model.n_items() == 0 {
|
||||
println!("Hide");
|
||||
} else {
|
||||
println!("Reveal");
|
||||
}
|
||||
});
|
||||
|
||||
let window_clone = window.clone();
|
||||
let instance = Self {
|
||||
window: window_clone,
|
||||
|
||||
Reference in New Issue
Block a user