Loading files
use std::{cell::RefCell, rc::Rc};
use super::super::slint::Backend;
use slint::ComponentHandle;
use crate::{device::Device, worker};
use super::UiState;
impl UiState {
/// Set up the "Main Menu" screen.
pub(super) fn setup_main_menu(&mut self, _state: &Rc<RefCell<UiState>>, _device: &mut Device) {
let root = self.root.unwrap();
let backend = root.global::<Backend>();
backend.on_main_menu_run_cartridge(|| worker::send(worker::Message::RunCartridge));
}
}
ce607713cThis file is pinned to the selected release. Download the original to open it in your design tool.