Merge pull request #191 from xduugu/sorted-runtimes

Sort runtime filter list
This commit is contained in:
Heliguy
2025-06-06 23:38:19 -04:00
committed by GitHub

View File

@@ -382,6 +382,9 @@ class HostInfo:
if not runtime in this.dependent_runtime_refs: if not runtime in this.dependent_runtime_refs:
this.dependent_runtime_refs.append(runtime) 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: except subprocess.CalledProcessError as cpe:
this.main_window.toast_overlay.add_toast(ErrorToast(_("Could not load packages"), cpe.stderr).toast) this.main_window.toast_overlay.add_toast(ErrorToast(_("Could not load packages"), cpe.stderr).toast)
except Exception as e: except Exception as e: