call_settings.rs

 1use gpui::App;
 2use settings::Settings;
 3
 4#[derive(Debug)]
 5pub struct CallSettings {
 6    pub mute_on_join: bool,
 7    pub share_on_join: bool,
 8}
 9
10impl Settings for CallSettings {
11    fn from_settings(content: &settings::SettingsContent, _cx: &mut App) -> Self {
12        let call = content.calls.clone().unwrap();
13        CallSettings {
14            mute_on_join: call.mute_on_join.unwrap(),
15            share_on_join: call.share_on_join.unwrap(),
16        }
17    }
18
19    fn import_from_vscode(
20        _vscode: &settings::VsCodeSettings,
21        _current: &mut settings::SettingsContent,
22    ) {
23    }
24}