AddonManager: Avoid dictionary.keys() where possible

This commit is contained in:
Roy-043
2023-08-10 12:48:29 +02:00
committed by Chris Hennes
parent 2ee7a9266a
commit 2f534dee4a

View File

@@ -588,7 +588,7 @@ class EditDependency:
# display name, but keeping track of their official name as well (stored in the UserRole)
for repo in AM_INSTANCE.item_model.repos:
repo_dict[repo.display_name.lower()] = (repo.display_name, repo.name)
sorted_keys = sorted(repo_dict.keys())
sorted_keys = sorted(repo_dict)
for item in sorted_keys:
self.dialog.dependencyComboBox.addItem(
repo_dict[item][0], repo_dict[item][1]