feat: add setup complete step
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
mod github_step;
|
||||
mod screen;
|
||||
mod setup_complete_step;
|
||||
mod storage;
|
||||
mod welcome_step;
|
||||
|
||||
@@ -14,10 +15,10 @@ use crate::{app, screen::setup_wizard::screen::Screen};
|
||||
pub(crate) enum Step {
|
||||
Welcome,
|
||||
ConnectToGithub,
|
||||
Customization,
|
||||
SetupComplete,
|
||||
}
|
||||
|
||||
const ALL_SETUP_STEPS: [Step; 3] = [Step::Welcome, Step::ConnectToGithub, Step::Customization];
|
||||
const ALL_SETUP_STEPS: [Step; 3] = [Step::Welcome, Step::ConnectToGithub, Step::SetupComplete];
|
||||
|
||||
pub fn read_setup_status() -> SetupStatus {
|
||||
storage::read_setup_state()
|
||||
@@ -65,7 +66,7 @@ impl Step {
|
||||
match self {
|
||||
Step::Welcome => 0,
|
||||
Step::ConnectToGithub => 1,
|
||||
Step::Customization => 2,
|
||||
Step::SetupComplete => 2,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user