Loading files
ce607713cThis file is pinned to the selected release. Download the original to open it in your design tool.
use std::{cell::RefCell, rc::Rc};
use super::super::slint::Backend;
use slint::ComponentHandle;
use crate::kvs;
use super::UiState;
impl UiState {
/// Set up the "Setup" screen.
pub(super) fn setup_setup(
&mut self,
_state: &Rc<RefCell<UiState>>,
_device: &mut crate::Device,
) {
let root = self.root.unwrap();
let backend = root.global::<Backend>();
backend.on_setup_complete(move || {
kvs::keys::SETUP_STAGE.set(&1);
});
}
}