ui: use Solaar icon instead of missing battery icons

This commit is contained in:
Peter F. Patel-Schneider 2020-05-07 09:41:29 -04:00 committed by Filipe Laíns
parent 66dc0bd285
commit 5411e43b77
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ def _init_icon_paths():
def battery(level=None, charging=False):
icon_name = _battery_icon_name(level, charging)
if not _default_theme.has_icon(icon_name):
_log.warning("icon %s not found in current theme", icon_name);
_log.warning("icon %s not found in current theme", icon_name)
return TRAY_OKAY # use Solaar icon if battery icon not available
elif _log.isEnabledFor(_DEBUG):
_log.debug("battery icon for %s:%s = %s", level, charging, icon_name)
return icon_name