Ensure settings global is initialized immediately

This commit is contained in:
Max Brunsfeld 2022-07-12 18:42:48 -07:00
parent 2d23774ac0
commit 0defb0e50f
2 changed files with 39 additions and 28 deletions

View file

@ -127,11 +127,10 @@ fn main() {
let db = cx.background().block(db);
let (settings_file, keymap_file) = cx.background().block(config_files).unwrap();
watch_settings_file(default_settings, settings_file, themes.clone(), cx);
watch_keymap_file(keymap_file, cx);
cx.spawn(|cx| watch_themes(fs.clone(), themes.clone(), cx))
.detach();
cx.spawn(|cx| watch_keymap_file(keymap_file, cx)).detach();
cx.spawn(|cx| watch_settings_file(default_settings, settings_file, themes.clone(), cx))
.detach();
cx.spawn({
let languages = languages.clone();