Skip to content

Commit

Permalink
feat(main): added message in no config folder of set-default-profile #…
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Jul 27, 2024
1 parent 0386909 commit 0166429
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,11 @@ impl App {
return;
}
Action::SetDefaultProfile(_) => {
let config_path = &CURRENT_EXE_PATH.to_path_buf().join("config");
if !config_path.exists() {
println!("Default profile cannot be set due to the absence of a config folder. Please check config folder.");
return;
}
if let Err(e) = set_default_profile(
check_setting_path(
&CURRENT_EXE_PATH.to_path_buf(),
Expand Down

0 comments on commit 0166429

Please sign in to comment.