fix: reset timeline when a popup is created
This commit is contained in:
parent
c7765278f0
commit
9f51e12fc9
5 changed files with 5 additions and 0 deletions
|
|
@ -310,6 +310,7 @@ impl cosmic::Application for Audio {
|
|||
}
|
||||
let new_id = window::Id::unique();
|
||||
self.popup.replace(new_id);
|
||||
self.timeline = Timeline::new();
|
||||
|
||||
let mut popup_settings = self.core.applet.get_popup_settings(
|
||||
window::Id::MAIN,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@ impl cosmic::Application for CosmicBluetoothApplet {
|
|||
// TODO request update of state maybe
|
||||
let new_id = window::Id::unique();
|
||||
self.popup.replace(new_id);
|
||||
self.timeline = Timeline::new();
|
||||
|
||||
let mut popup_settings = self.core.applet.get_popup_settings(
|
||||
window::Id::MAIN,
|
||||
|
|
|
|||
|
|
@ -229,6 +229,7 @@ impl cosmic::Application for CosmicNetworkApplet {
|
|||
// TODO request update of state maybe
|
||||
let new_id = window::Id::unique();
|
||||
self.popup.replace(new_id);
|
||||
self.timeline = Timeline::new();
|
||||
|
||||
let mut popup_settings = self.core.applet.get_popup_settings(
|
||||
window::Id::MAIN,
|
||||
|
|
|
|||
|
|
@ -186,6 +186,7 @@ impl cosmic::Application for Notifications {
|
|||
} else {
|
||||
let new_id = window::Id::unique();
|
||||
self.popup.replace(new_id);
|
||||
self.timeline = Timeline::new();
|
||||
|
||||
let mut popup_settings = self.core.applet.get_popup_settings(
|
||||
window::Id::MAIN,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue