Some dead code removal/usage

This commit is contained in:
Mike Dilger 2024-07-01 10:12:09 +12:00
parent 063153391a
commit 3be3ee5951
2 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ pub struct About {
pub version: String, pub version: String,
pub description: String, pub description: String,
pub authors: String, pub authors: String,
pub repository: String, //pub repository: String,
pub homepage: String, pub homepage: String,
pub license: String, pub license: String,
pub storage_path: String, pub storage_path: String,
@ -37,7 +37,7 @@ impl About {
version, version,
description: env!("CARGO_PKG_DESCRIPTION").to_string(), description: env!("CARGO_PKG_DESCRIPTION").to_string(),
authors: env!("CARGO_PKG_AUTHORS").to_string(), authors: env!("CARGO_PKG_AUTHORS").to_string(),
repository: env!("CARGO_PKG_REPOSITORY").to_string(), //repository: env!("CARGO_PKG_REPOSITORY").to_string(),
homepage: env!("CARGO_PKG_HOMEPAGE").to_string(), homepage: env!("CARGO_PKG_HOMEPAGE").to_string(),
license: env!("CARGO_PKG_LICENSE").to_string(), license: env!("CARGO_PKG_LICENSE").to_string(),
storage_path: data_dir, storage_path: data_dir,

View File

@ -50,6 +50,7 @@ We are storing data on your system in this directory: {}. This data is only used
ui.add_space(15.0); ui.add_space(15.0);
ui.label(RichText::new("This program comes with absolutely no warranty.").text_style(TextStyle::Small)); ui.label(RichText::new("This program comes with absolutely no warranty.").text_style(TextStyle::Small));
ui.label(RichText::new("See the MIT License for details.").text_style(TextStyle::Small));
ui.label(RichText::new(format!("See the {} License for details.", &app.about.license)).text_style(TextStyle::Small));
}); });
} }