mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
Refresh windows when settings file changes
This commit is contained in:
parent
667f476f7f
commit
823e15d85a
2 changed files with 2 additions and 2 deletions
|
@ -2,12 +2,11 @@ mod keymap_file;
|
||||||
mod settings_file;
|
mod settings_file;
|
||||||
mod settings_store;
|
mod settings_store;
|
||||||
|
|
||||||
use std::{borrow::Cow, str};
|
|
||||||
|
|
||||||
use gpui::AssetSource;
|
use gpui::AssetSource;
|
||||||
pub use keymap_file::{keymap_file_json_schema, KeymapFileContent};
|
pub use keymap_file::{keymap_file_json_schema, KeymapFileContent};
|
||||||
pub use settings_file::*;
|
pub use settings_file::*;
|
||||||
pub use settings_store::{Setting, SettingsJsonSchemaParams, SettingsStore};
|
pub use settings_store::{Setting, SettingsJsonSchemaParams, SettingsStore};
|
||||||
|
use std::{borrow::Cow, str};
|
||||||
|
|
||||||
pub const DEFAULT_SETTINGS_ASSET_PATH: &str = "settings/default.json";
|
pub const DEFAULT_SETTINGS_ASSET_PATH: &str = "settings/default.json";
|
||||||
pub const INITIAL_USER_SETTINGS_ASSET_PATH: &str = "settings/initial_user_settings.json";
|
pub const INITIAL_USER_SETTINGS_ASSET_PATH: &str = "settings/initial_user_settings.json";
|
||||||
|
|
|
@ -89,6 +89,7 @@ pub fn handle_settings_file_changes(
|
||||||
.set_user_settings(&user_settings_content, cx)
|
.set_user_settings(&user_settings_content, cx)
|
||||||
.log_err();
|
.log_err();
|
||||||
});
|
});
|
||||||
|
cx.refresh_windows();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue