-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: sorry I kinda forgot what I did
- Loading branch information
Showing
9 changed files
with
77 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,34 @@ | ||
use gettextrs::gettext; | ||
use relm4::Sender; | ||
|
||
use crate::pages::_11_installing::InstallingPageMsg; | ||
|
||
pub mod dnf; | ||
|
||
pub const NUM_STAGES: usize = 5; | ||
|
||
#[derive(Debug)] | ||
pub enum Stage { | ||
UserAdd, | ||
SetTime, | ||
SetTheme, | ||
DnfUpdate, | ||
DnfInstall, | ||
} | ||
|
||
impl From<Stage> for String { | ||
fn from(value: Stage) -> Self { | ||
match value { | ||
Stage::UserAdd => gettext("Creating User…"), | ||
Stage::SetTime => gettext("Setting Timezone…"), | ||
Stage::SetTheme => gettext("Configuring Themes…"), | ||
Stage::DnfUpdate => gettext("Performing System Update…"), | ||
Stage::DnfInstall => gettext("Adding User Programs…"), | ||
} | ||
} | ||
} | ||
|
||
#[tracing::instrument] | ||
pub async fn start_install(sender: Sender<InstallingPageMsg>) { | ||
tracing::info!("Starting installation"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ pub use relm4::{ | |
prelude::*, | ||
}; | ||
|
||
pub use crate::{NavAction, CONFIG}; | ||
pub use crate::{NavAction, CFG}; |