update libcosmic

This commit is contained in:
Ashley Wulber 2024-12-02 09:58:14 -05:00 committed by Michael Murphy
parent 391a7f8dab
commit f486b3b1ad
3 changed files with 160 additions and 209 deletions

361
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -376,7 +376,7 @@ impl cosmic::Application for Audio {
self.output_volume_debounce = true;
return cosmic::command::future(async move {
return cosmic::task::future(async move {
tokio::time::sleep(Duration::from_millis(64)).await;
Message::ApplyOutputVolume
});
@ -395,7 +395,7 @@ impl cosmic::Application for Audio {
self.input_volume_debounce = true;
return cosmic::command::future(async move {
return cosmic::task::future(async move {
tokio::time::sleep(Duration::from_millis(64)).await;
Message::ApplyInputVolume
});

View file

@ -77,10 +77,6 @@ impl cosmic::Application for Window {
}
fn init(core: Core, _flags: Self::Flags) -> (Self, Task<cosmic::app::Message<Self::Message>>) {
let mut gaps = spin_button::Model::default().max(99).min(0).step(1);
gaps.value = core.system_theme().cosmic().gaps.1 as i32;
let mut active_hint = spin_button::Model::default().max(99).min(0).step(1);
active_hint.value = core.system_theme().cosmic().active_hint as i32;
let config_helper =
Config::new("com.system76.CosmicComp", CosmicCompConfig::VERSION).unwrap();
let mut config = CosmicCompConfig::get_entry(&config_helper).unwrap_or_else(|(errs, c)| {