Docs, ticks, working app
This commit is contained in:
+7
-5
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user