Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Verified Commit b46ff126 authored by Ayush Singh's avatar Ayush Singh
Browse files

gui: Extract Screen enum


- Move it to pages module

Signed-off-by: Ayush Singh's avatarAyush Singh <ayush@beagleboard.org>
parent 76f3e9bd
No related merge requests found
......@@ -8,6 +8,7 @@ use iced::{
widget::{self, button, text},
Element, Task,
};
use pages::Screen;
mod constants;
mod helpers;
......@@ -776,17 +777,6 @@ impl BBImager {
}
}
#[derive(Default, Debug, Clone)]
enum Screen {
#[default]
Home,
BoardSelection,
ImageSelection,
DestinationSelection,
ExtraConfiguration,
Flashing(pages::flash::FlashingScreen),
}
fn img_or_svg<'a>(path: std::path::PathBuf, width: u16) -> Element<'a, BBImagerMessage> {
let img = std::fs::read(path).unwrap();
......
pub mod flash;
#[derive(Default, Debug, Clone)]
pub enum Screen {
#[default]
Home,
BoardSelection,
ImageSelection,
DestinationSelection,
ExtraConfiguration,
Flashing(flash::FlashingScreen),
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment