Windows: Add filters to Titles in some AdministrationWindows
Test / Run tests (push) Successful in 2m44s
Test / Run tests (push) Successful in 2m44s
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user