mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Merge pull request #191 from xduugu/sorted-runtimes
Sort runtime filter list
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user