diff options
| author | Rubén Beltrán del Río <jj@r.bdr.sh> | 2026-01-16 14:22:21 +0100 |
|---|---|---|
| committer | Rubén Beltrán del Río <jj@r.bdr.sh> | 2026-01-16 14:30:06 +0100 |
| commit | 5a902f8b350f8b2b33c4e19c70f3425802faaa1b (patch) | |
| tree | 968db76028c56a52639fa8af19dd0ef004752812 /src/preferences | |
| parent | 783d379bfaabe8a0eb6fe368bb0ba47c905b1a80 (diff) | |
Use templates
Diffstat (limited to 'src/preferences')
| -rw-r--r-- | src/preferences/models.rs | 4 | ||||
| -rw-r--r-- | src/preferences/storage.rs | 1 |
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)?; } |