Skip to content

Commit

Permalink
fix: fix dialog message
Browse files Browse the repository at this point in the history
  • Loading branch information
hcavarsan committed Jun 21, 2024
1 parent 3f336af commit 907cf31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/kftray-tauri/src/utils/validate_configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,21 @@ async fn show_alert_dialog(

let full_message = format!(
"Multiple configuration directories have been detected in the following locations:\n\n{}\n\n\
{}\n\
Environment Variables Checked (in order of precedence):\n\
- XDG_CONFIG_HOME: {}\n\
- KFTRAY_CONFIG: {}\n\
- XDG_CONFIG_HOME: {}\n\
- HOME: {}\n\n\
{}\
To resolve this issue, please:\n\
1. Move or delete the extra configuration directories.\n\
2. Ensure that the remaining directory is in the correct location.\n\n\
Recommended Directory:\n\
* {}\n",
msg,
active_config_msg,
env::var("XDG_CONFIG_HOME").unwrap_or_else(|_| "Not set".to_string()),
env::var("KFTRAY_CONFIG").unwrap_or_else(|_| "Not set".to_string()),
env::var("XDG_CONFIG_HOME").unwrap_or_else(|_| "Not set".to_string()),
env::var("HOME").unwrap_or_else(|_| "Not set".to_string()),
active_config_msg,
dirs::home_dir().map_or("<home_directory_not_found>".to_string(), |p| p.join(".kftray").display().to_string())
);

Expand Down

0 comments on commit 907cf31

Please sign in to comment.