mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
Fix: Changed FileDialog.FilePath to full path (#263)
This commit is contained in:
committed by
Miguel de Icaza
parent
f0a079b242
commit
2a27cbdea5
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user