Sort runtime filter list

It was implemented before in #84, but was lost in the 2.0 rewrite.
This commit is contained in:
Cedric Staniewski
2025-04-03 23:45:24 +02:00
parent 0a18e5d81b
commit 38a49327b9

View File

@@ -382,6 +382,9 @@ class HostInfo:
if not runtime in this.dependent_runtime_refs:
this.dependent_runtime_refs.append(runtime)
# store runtimes in sorted order
this.dependent_runtime_refs = sorted(this.dependent_runtime_refs)
except subprocess.CalledProcessError as cpe:
this.main_window.toast_overlay.add_toast(ErrorToast(_("Could not load packages"), cpe.stderr).toast)
except Exception as e: