fn post_init() {
        flap_toggle
            .bind_property("active", &flap, "reveal-flap")
            .flags(BindingFlags::BIDIRECTIONAL)
            .build();

        flap_toggle.set_active(true);

        main_view.set_visible_child_name(&model.start_page.to_string());

        std::thread::spawn(move || loop {
            std::thread::sleep(std::time::Duration::from_secs(1));
            send!(sender, AppMsg::Update);
        });
    }
// Connect properties and start update thread.
Connect properties and start update thread.
Connect properties and start update thread .
fn post_init() {
        flap_toggle
            .bind_property("active", &flap, "reveal-flap")
            .flags(BindingFlags::BIDIRECTIONAL)
            .build();
        flap_toggle.set_active(true);
        main_view.set_visible_child_name(&model.start_page.to_string());
        std::thread::spawn(move || loop {
            std::thread::sleep(std::time::Duration::from_secs(1));
            send!(sender, AppMsg::Update);
        });
    }
fn post_init ( ) { flap_toggle . bind_property ( " " , & flap , " " ) . flags ( BindingFlags :: BIDIRECTIONAL ) . build ( ) ; flap_toggle . set_active ( true ) ; main_view . set_visible_child_name ( & model . start_page . to_string ( ) ) ; std :: thread :: spawn ( move | | loop { std :: thread :: sleep ( std :: time :: Duration :: from_secs ( 1 ) ) ; send ! ( sender AppMsg Update ) ; } ) ; }
Connect properties and start update thread.
Connect properties and start update thread .