init invisible by default

This commit is contained in:
yggverse 2024-11-21 13:18:11 +02:00
parent d0f61aab5e
commit 4d47dd4385

View File

@ -19,7 +19,11 @@ impl File {
/// Create new `Self`
pub fn new(action: Rc<Action>) -> Self {
// Init `GObject`
let gobject = Button::builder().label(LABEL).margin_top(MARGIN).build();
let gobject = Button::builder()
.label(LABEL)
.margin_top(MARGIN)
.visible(false)
.build();
// Init events
gobject.connect_clicked(move |_| todo!());