aboutsummaryrefslogtreecommitdiff
path: root/src/preferences
diff options
context:
space:
mode:
Diffstat (limited to 'src/preferences')
-rw-r--r--src/preferences/models.rs4
-rw-r--r--src/preferences/storage.rs1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/preferences/models.rs b/src/preferences/models.rs
index 2cf4665..e980805 100644
--- a/src/preferences/models.rs
+++ b/src/preferences/models.rs
@@ -174,8 +174,8 @@ impl Default for UserPreferences {
map_templates: vec![
Template::new(
- "Default".to_string(),
- "title My Map\n\nanchor Business [0.95, 0.63]\nanchor Public [0.95, 0.78]\ncomponent User Needs [0.9, 0.50]\n".to_string(),
+ "Basic Map".to_string(),
+ "Anchor (95, 80)\nUsers (90, 20)\nWalking App (70, 20)\nWalking App Database (50, 60)\nUser Interface (80, 50)\nWeb Server (60, 30)\nCRM (30, 70)\n\nUsers -- Walking App\nUsers -- User Interface\nWalking App -- Walking App Database\nWalking App -- Web Server\nUser Interface -- Web Server\nWeb Server -- CRM\n\n[Note] (80, 5) Social walking app for everyone\n\n[Group] Client Side, Walking App, User Interface\n\n[Evolution] Walking App +5\n\n[Inertia] CRM\n".to_string(),
true,
),
Template::new("Empty".to_string(), String::new(), false),
diff --git a/src/preferences/storage.rs b/src/preferences/storage.rs
index 889b503..83db786 100644
--- a/src/preferences/storage.rs
+++ b/src/preferences/storage.rs
@@ -50,7 +50,6 @@ pub fn load() -> UserPreferences {
pub fn save(prefs: &UserPreferences) -> Result<(), std::io::Error> {
let path = preferences_path();
- // Ensure config directory exists
if let Some(parent) = path.parent() {
fs::create_dir_all(parent)?;
}