ui: add missing parentheses to function call

Compare function's return value to AppIndicator3.IndicatorStatus.ATTENTION
instead of the function object reference.
This commit is contained in:
Thomas Uhle 2020-03-30 17:30:08 +02:00 committed by Peter F. Patel-Schneider
parent 563ef0d8ef
commit 422f336d70
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ try:
def attention(reason=None):
if _icon.get_status != AppIndicator3.IndicatorStatus.ATTENTION:
if _icon.get_status() != AppIndicator3.IndicatorStatus.ATTENTION:
_icon.set_attention_icon_full(_icon_file(_icons.TRAY_ATTENTION), reason or '')
_icon.set_status(AppIndicator3.IndicatorStatus.ATTENTION)
GLib.timeout_add(10 * 1000, _icon.set_status, AppIndicator3.IndicatorStatus.ACTIVE)