Skip to content

Commit

Permalink
♻️ More set_to_windowprop out to module
Browse files Browse the repository at this point in the history
  • Loading branch information
jurialmunkey committed Oct 7, 2023
1 parent 1f25c5d commit 1c7db23
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion resources/lib/lists/filterdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# License: GPL v.3 https://www.gnu.org/copyleft/gpl.html
import operator
from xbmcgui import ListItem
from resources.lib.method import set_to_windowprop
from infotagger.listitem import ListItemInfoTag
from jurialmunkey.parser import split_items
from jurialmunkey.litems import Container
from jurialmunkey.window import set_to_windowprop

DIRECTORY_PROPERTIES_BASIC = ["title", "art", "file", "fanart"]

Expand Down
2 changes: 1 addition & 1 deletion resources/lib/lists/koditools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Module: default
# Author: jurialmunkey
# License: GPL v.3 https://www.gnu.org/copyleft/gpl.html
from resources.lib.method import set_to_windowprop
from jurialmunkey.window import set_to_windowprop
from jurialmunkey.litems import Container


Expand Down
9 changes: 0 additions & 9 deletions resources/lib/method.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ def get_paramstring_tuplepairs(paramstring):
return [tuple(i.split(';')) for i in paramstring.split(';;')]


def set_to_windowprop(text, x, window_prop, window_id=None):
import xbmc
if not window_prop:
return
if x == 0:
xbmc.executebuiltin(f'SetProperty({window_prop},{text}{f",{window_id}" if window_id else ""})')
xbmc.executebuiltin(f'SetProperty({window_prop}.{x},{text}{f",{window_id}" if window_id else ""})')


def executebuiltin(executebuiltin='', index=None, values=None, **kwargs):
if index == -1 or index is False:
return
Expand Down

0 comments on commit 1c7db23

Please sign in to comment.