mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Set central window property
Always have the latest properties and will clean up the code. Will centralize the rest of the code a bit later.
This commit is contained in:
parent
d9906141fe
commit
475a671d08
1 changed files with 10 additions and 0 deletions
|
@ -269,6 +269,16 @@ def settings(setting, value = None):
|
|||
else:
|
||||
return addon.getSetting(setting)
|
||||
|
||||
def window(property, value = None, clear = False):
|
||||
# Get or set window property
|
||||
WINDOW = xbmcgui.Window(10000)
|
||||
if clear:
|
||||
WINDOW.clearProperty(property)
|
||||
elif value:
|
||||
WINDOW.setProperty(property, value)
|
||||
else:
|
||||
return WINDOW.getProperty(property)
|
||||
|
||||
def normalize_string(text):
|
||||
# For theme media, do not modify unless
|
||||
# modified in TV Tunes
|
||||
|
|
Loading…
Reference in a new issue