- **Reapply "Remove cx from ThemeSettings (#38836)" (#39691)** - **Fix theme loading races** Closes #ISSUE Release Notes: - N/A
18 lines
431 B
Rust
18 lines
431 B
Rust
use settings::Settings;
|
|
|
|
#[derive(Debug)]
|
|
pub struct CallSettings {
|
|
pub mute_on_join: bool,
|
|
pub share_on_join: bool,
|
|
}
|
|
|
|
impl Settings for CallSettings {
|
|
fn from_settings(content: &settings::SettingsContent) -> Self {
|
|
let call = content.calls.clone().unwrap();
|
|
CallSettings {
|
|
mute_on_join: call.mute_on_join.unwrap(),
|
|
share_on_join: call.share_on_join.unwrap(),
|
|
}
|
|
}
|
|
}
|