mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-26 00:49:38 +07:00
systemadm: display dependencies sorted
This commit is contained in:
parent
11216eb0bd
commit
8278f06953
@ -458,6 +458,10 @@ public class MainWindow : Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public string make_dependency_string(string? prefix, string word, string[] dependencies) {
|
public string make_dependency_string(string? prefix, string word, string[] dependencies) {
|
||||||
|
Gee.Collection<unowned string> sorted = new Gee.TreeSet<string>();
|
||||||
|
foreach (string i in dependencies)
|
||||||
|
sorted.add(i);
|
||||||
|
|
||||||
bool first = true;
|
bool first = true;
|
||||||
string r;
|
string r;
|
||||||
|
|
||||||
@ -466,7 +470,7 @@ public class MainWindow : Window {
|
|||||||
else
|
else
|
||||||
r = prefix;
|
r = prefix;
|
||||||
|
|
||||||
foreach (string i in dependencies) {
|
foreach (string i in sorted) {
|
||||||
if (r != "")
|
if (r != "")
|
||||||
r += first ? "\n" : ",";
|
r += first ? "\n" : ",";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user