Validate settings before run

This commit is contained in:
Philip Kristoffersen
2021-11-03 08:47:34 +01:00
parent 46e14f8192
commit 37a18fb3be
7 changed files with 62 additions and 4 deletions
+8
View File
@@ -10,6 +10,14 @@ where
fn get_shortcuts(&self) -> Result<Vec<T>, E>;
fn settings_valid(&self) -> SettingsValidity;
#[cfg(target_os = "linux")]
fn create_symlinks(&self) -> bool;
}
pub enum SettingsValidity{
Valid,
Invalid{reason:String},
}