Windows: Add filters to Titles in some AdministrationWindows
Test / Run tests (push) Successful in 2m21s

This commit is contained in:
2026-09-12 22:59:57 +02:00
parent e66780ccd0
commit fea779bd95
10 changed files with 32 additions and 19 deletions
+5
View File
@@ -712,5 +712,10 @@ namespace Elwig.Helpers {
var filename = Path.Combine(App.MailsPath, $"{DateTime.Now:yyyy-MM-dd_HH-mm-ss}_{NormalizeFileName(subject)}.txt");
await File.WriteAllTextAsync(filename, $"# {subject}\r\n# Vorgesehene Empfänger: {recipients}\r\n\r\n" + body, Utils.UTF8);
}
public static string GetTitle(string window, IEnumerable<string> filterNames, IEnumerable<string> filter) {
var f = string.Join(" / ", filterNames.Union(filter.Select(f => $"\"{f}\"")));
return window + (f.Length == 0 ? "" : ": " + f) + " - Elwig";
}
}
}