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