ui: fix end of iterative calls to _blink()

Prepare _icon_before_attention for the next iteration by reinitializing it
at the end of the current iteration.
This commit is contained in:
Thomas Uhle 2020-03-30 17:35:08 +02:00 committed by Peter F. Patel-Schneider
parent 422f336d70
commit 2bdb844557
1 changed files with 2 additions and 0 deletions

View File

@ -269,6 +269,8 @@ except ImportError:
if count > 0:
GLib.timeout_add(1000, _blink, count - 1)
else:
_icon_before_attention = None
def attention(reason=None):
global _icon_before_attention