update libcosmic
This commit is contained in:
parent
391a7f8dab
commit
f486b3b1ad
3 changed files with 160 additions and 209 deletions
361
Cargo.lock
generated
361
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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)| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue