# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals

from resources.lib.modules.globals import g

try:
    import xbmc
except ImportError:
    from mock_kodi import xbmc


class SerenMonitor(xbmc.Monitor):
    def onSettingsChanged(self):
        super(SerenMonitor, self).onSettingsChanged()
        if not g.is_addon_visible():
            return
        g.trigger_widget_refresh()
