Skip to content

Commit

Permalink
feat: add VERSION constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Phill030 committed Jun 1, 2024
1 parent 4693694 commit d7afe15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ mod parser;
mod revision_checker;
pub mod util;

const VERSION: &str = "1.0.0";

/// This struct holds the current state of the app.
struct App {
pub assets: AssetList,
Expand Down Expand Up @@ -173,7 +175,7 @@ impl Widget for &mut App {
let block = Block::new()
.border_type(BorderType::Rounded)
.borders(Borders::all())
.title(Line::from(" Arcane (Asset-Fetcher) ").centered())
.title(Line::from(format!(" Arcane (Asset-Fetcher) v{VERSION} ")).centered())
.title(Line::from(format!(" {} ", self.asset_fetcher.revision)).left_aligned())
.title(Line::from(format!(" {} assets found ", self.assets.asset_len())).right_aligned())
.title_bottom(Line::from(" © Phill030 (Revive101) ").left_aligned())
Expand Down

0 comments on commit d7afe15

Please sign in to comment.