chore(battery): update deps with fix
This commit is contained in:
parent
89a149034d
commit
8b2ff3df73
2 changed files with 103 additions and 89 deletions
|
|
@ -368,6 +368,10 @@ impl cosmic::Application for CosmicBatteryApplet {
|
|||
let _ = tx.send(());
|
||||
}
|
||||
let mut tasks = vec![get_popup(popup_settings)];
|
||||
if let Some(tx) = &self.settings_daemon_sender {
|
||||
let _ = tx.send(settings_daemon::Request::GetDisplayBrightness);
|
||||
let _ = tx.send(settings_daemon::Request::GetMaxDisplayBrightness);
|
||||
}
|
||||
// Try again every time a popup is opened
|
||||
if self.charging_limit.is_none() {
|
||||
tasks.push(Task::perform(get_charging_limit(), |limit| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue