Docs, ticks, working app

This commit is contained in:
Hugh Kaznowski
2026-09-05 15:05:39 +01:00
parent 41362aa3d8
commit 51e577f01e
41 changed files with 1039 additions and 683 deletions
+7 -5
View File
@@ -61,11 +61,13 @@ async fn main() {
// could silently miss lines that raced ahead of the declarations).
{
let (active_profile_name, profiles_dir) = {
let settings_guard = settings.lock().unwrap();
(
settings_guard.profiles.active_profile.clone(),
profile::resolve_profiles_dir(&settings_guard, &settings_path),
)
let mut settings_guard = settings.lock().unwrap();
let profiles_dir = profile::resolve_profiles_dir(&settings_guard, &settings_path);
let mut store = ProfileStore::load(&profile::profiles_store_path(&profiles_dir));
store
.ensure_default(&profile::profiles_store_path(&profiles_dir), &mut settings_guard, &settings_path)
.expect("failed to ensure the Default profile exists");
(settings_guard.profiles.active_profile.clone(), profiles_dir)
};
if let Some(profile_name) = active_profile_name {
let store = ProfileStore::load(&profile::profiles_store_path(&profiles_dir));