Remove optional path argument when getting settings
This commit is contained in:
parent
1f0e79ee9d
commit
2d5f03e148
35 changed files with 84 additions and 113 deletions
|
@ -40,7 +40,7 @@ pub struct BaseKeymapSelectorDelegate {
|
|||
|
||||
impl BaseKeymapSelectorDelegate {
|
||||
fn new(fs: Arc<dyn Fs>, cx: &mut ViewContext<BaseKeymapSelector>) -> Self {
|
||||
let base = settings::get_setting::<BaseKeymap>(None, cx);
|
||||
let base = settings::get::<BaseKeymap>(cx);
|
||||
let selected_index = BaseKeymap::OPTIONS
|
||||
.iter()
|
||||
.position(|(_, value)| value == base)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue