mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +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) {
|
||||
Gee.Collection<unowned string> sorted = new Gee.TreeSet<string>();
|
||||
foreach (string i in dependencies)
|
||||
sorted.add(i);
|
||||
|
||||
bool first = true;
|
||||
string r;
|
||||
|
||||
@ -466,7 +470,7 @@ public class MainWindow : Window {
|
||||
else
|
||||
r = prefix;
|
||||
|
||||
foreach (string i in dependencies) {
|
||||
foreach (string i in sorted) {
|
||||
if (r != "")
|
||||
r += first ? "\n" : ",";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user