Skip to content
Snippets Groups Projects

menu ordered by metadata not folder name

Closed fleur requested to merge fleur/firmware:b-butwasntthisaboutchaos into master
3 unresolved threads

Merge request reports

Merge request pipeline #4128 passed

Merge request pipeline passed for 5a2f65ba

Closed by rahixrahix 5 years ago (Oct 18, 2019 7:50am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
88 88
89 89 if __name__ == "__main__":
90 90 try:
91 apps = list(enumerate_apps())
91 apps = sorted(list(enumerate_apps()), key=lambda b: b.name.lower())
  • You need to move the list() to the outside of this again, so it is

    list(sorted(enumerate_apps(), ...))

    Otherwise the code in L95 will not work correctly.

  • Please register or sign in to reply
  • rahix
    rahix @rahix started a thread on the diff
  • 23 23 if f == "main.py":
    24 24 yield App("Home", f)
    25 25
    26 26 for app in sorted(os.listdir("/apps")):
    • Thanks! One thing I think will happen with this change is the Home entry no longer being the first one ... Not sure how to solve this properly.

  • added 1-Bug 3 - Preload labels

  • rahix assigned to @rahix

    assigned to @rahix

  • rahix changed milestone to %v1.12

    changed milestone to %v1.12

  • rahix mentioned in merge request !346 (merged)

    mentioned in merge request !346 (merged)

  • Superseded by !346 (merged) which includes this change. Thanks @fleur!

  • closed

  • Please register or sign in to reply
    Loading