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:
parent
422f336d70
commit
2bdb844557
|
@ -269,6 +269,8 @@ except ImportError:
|
||||||
|
|
||||||
if count > 0:
|
if count > 0:
|
||||||
GLib.timeout_add(1000, _blink, count - 1)
|
GLib.timeout_add(1000, _blink, count - 1)
|
||||||
|
else:
|
||||||
|
_icon_before_attention = None
|
||||||
|
|
||||||
def attention(reason=None):
|
def attention(reason=None):
|
||||||
global _icon_before_attention
|
global _icon_before_attention
|
||||||
|
|
Loading…
Reference in New Issue