Fix: Changed FileDialog.FilePath to full path (#263)

This commit is contained in:
Yanwei Wang
2019-10-26 01:29:58 +08:00
committed by Miguel de Icaza
parent f0a079b242
commit 2a27cbdea5

View File

@@ -425,9 +425,9 @@ namespace Terminal.Gui {
/// </summary>
/// <value>The absolute file path for the file path entered.</value>
public ustring FilePath {
get => nameEntry.Text;
get => dirListView.MakePath(nameEntry.Text.ToString());
set {
nameEntry.Text = value;
nameEntry.Text = Path.GetFileName(value.ToString());
}
}
}
@@ -458,7 +458,7 @@ namespace Terminal.Gui {
get {
if (canceled)
return null;
return FilePath;
return Path.GetFileName(FilePath.ToString());
}
}
}