Trim default Titles to be more compact and readable

This commit is contained in:
tznind
2023-02-26 18:16:58 +00:00
parent 7e446ff0d3
commit e9a100cf28

View File

@@ -504,13 +504,13 @@ namespace Terminal.Gui {
if (ustring.IsNullOrEmpty (Title)) {
switch (OpenMode) {
case OpenMode.File:
this.Title = $" OPEN {(MustExist ? "EXISTING ":"")}FILE ";
this.Title = $"OPEN {(MustExist ? "EXISTING ":"")}FILE";
break;
case OpenMode.Directory:
this.Title = $" OPEN {(MustExist ? "EXISTING " : "")}DIRECTORY ";
this.Title = $"OPEN {(MustExist ? "EXISTING " : "")}DIRECTORY";
break;
case OpenMode.Mixed:
this.Title = $" OPEN {(MustExist ? "EXISTING":"")}";
this.Title = $"OPEN{(MustExist ? " EXISTING":"")}";
break;
}
}