ac-suspend-fix
Call recreate_notifications at OnBattery to prevent on AC suspends.
This commit is contained in:
parent
b3693ea1cf
commit
87f36b9a54
1 changed files with 1 additions and 0 deletions
|
|
@ -222,6 +222,7 @@ impl State {
|
||||||
match event {
|
match event {
|
||||||
Event::OnBattery(value) => {
|
Event::OnBattery(value) => {
|
||||||
self.on_battery = value;
|
self.on_battery = value;
|
||||||
|
self.recreate_notifications();
|
||||||
}
|
}
|
||||||
Event::ScreensaverInhibit(value) => {
|
Event::ScreensaverInhibit(value) => {
|
||||||
self.screensaver_inhibit = value;
|
self.screensaver_inhibit = value;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue