Example #1
0
    def onSettingsChanged(self):
        hotkey = utils.ADDON.getSetting('HOTKEY')
        context = utils.ADDON.getSetting('CONTEXT') == 'true'

        utils.VerifyKeymaps()

        if self.hotkey == hotkey and self.context == context:
            return

        self.hotkey = hotkey
        self.context = context

        utils.UpdateKeymaps()
Example #2
0
    def onSettingsChanged(self):
        hotkey           = utils.ADDON.getSetting('HOTKEY')
        context          = utils.ADDON.getSetting('CONTEXT')     == 'true'
        self.std_context = utils.ADDON.getSetting('CONTEXT_STD') == 'true'

        self.updateStdContextMenuItem()

        utils.VerifyKeymaps()

        if self.hotkey == hotkey and self.context == context:
            return

        self.hotkey  = hotkey
        self.context = context

        utils.UpdateKeymaps()
Example #3
0
#  This Program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with XBMC; see the file COPYING.  If not, write to
#  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#  http://www.gnu.org/copyleft/gpl.html
#

import utils
import xbmc
import os

utils.VerifyKeymaps()

if utils.ADDON.getSetting('AUTOSTART') == 'true':
    utils.LaunchSF()


def checkDisabled():
    if xbmc.getCondVisibility('System.HasAddon(%s)' % utils.ADDONID) == 0:
        utils.DeleteKeymap(utils.KEYMAP_HOT)
        utils.DeleteKeymap(utils.KEYMAP_MENU)
        return True

    return False


class MyMonitor(xbmc.Monitor):