From 8c4465f552531757c13147798a99dc1bb1ad70a2 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Wed, 27 Nov 2019 14:19:25 -0600 Subject: [PATCH] add methods for getting bools and int values directly --- resources/lib/utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index f6f4df5..2be1ef2 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -30,6 +30,14 @@ def getSetting(name): return __Addon.getSetting(name) +def getSettingBool(name): + return bool(__Addon.getSettingBool(name)) + + +def getSettingInt(name): + return __Addon.getSettingInt(name) + + def setSetting(name, value): __Addon.setSetting(name, value)