fix: reset timeline when a popup is created

This commit is contained in:
Ashley Wulber 2024-04-30 18:43:42 -04:00 committed by Ashley Wulber
parent c7765278f0
commit 9f51e12fc9
5 changed files with 5 additions and 0 deletions

View file

@ -238,6 +238,7 @@ impl cosmic::Application for CosmicBatteryApplet {
if let Some(tx) = &self.screen_sender {
let _ = tx.send(ScreenBacklightRequest::Get);
}
self.timeline = Timeline::new();
let new_id = window::Id::unique();
self.popup.replace(new_id);