diff --git a/main.py b/main.py index aaa96f9..273b1ce 100644 --- a/main.py +++ b/main.py @@ -379,7 +379,11 @@ def index_of(path=None): 'thumbnail':thumbnail, 'context_menu': context_items, }) - items = items + sorted(favourites(path), key=lambda x: x["label"].lower()) + + if plugin.get_setting('sort') == 'true': + items = items + sorted(favourites(path), key=lambda x: x["label"].lower()) + else: + items = items + favourites(path) items.append( { diff --git a/resources/settings.xml b/resources/settings.xml index 2afd422..764d7b1 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -4,4 +4,7 @@ + + + \ No newline at end of file