Ensure settings global is initialized immediately
This commit is contained in:
parent
2d23774ac0
commit
0defb0e50f
2 changed files with 39 additions and 28 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue