Merge pull request #66 from FoamyGuy/order_app_icons
Some checks failed
Validate Build / validate-build (push) Has been cancelled
Some checks failed
Validate Build / validate-build (push) Has been cancelled
sort app icons by title. Remove unused iterator var
This commit is contained in:
commit
508a0f5b87
1 changed files with 1 additions and 2 deletions
|
|
@ -175,7 +175,6 @@ scaled_group.append(menu_title_txt)
|
||||||
app_titles = []
|
app_titles = []
|
||||||
apps = []
|
apps = []
|
||||||
app_path = pathlib.Path("/apps")
|
app_path = pathlib.Path("/apps")
|
||||||
i = 0
|
|
||||||
|
|
||||||
pages = [{}]
|
pages = [{}]
|
||||||
|
|
||||||
|
|
@ -216,7 +215,7 @@ for path in app_path.iterdir():
|
||||||
"dir": path
|
"dir": path
|
||||||
})
|
})
|
||||||
|
|
||||||
i += 1
|
apps = sorted(apps, key=lambda app: app["title"].lower())
|
||||||
|
|
||||||
print("launcher config", launcher_config)
|
print("launcher config", launcher_config)
|
||||||
if "favorites" in launcher_config:
|
if "favorites" in launcher_config:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue