mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Merge pull request #855 from BDisp/openfiledialog-fix
Fixes #844. If CanChooseDirectories is true the selected(s) folders should appear on the open text.
This commit is contained in:
@@ -243,7 +243,7 @@ namespace Terminal.Gui {
|
||||
if (FilePaths.Count > 0)
|
||||
FileChanged?.Invoke (string.Join (", ", GetFilesName (FilePaths)));
|
||||
else
|
||||
FileChanged?.Invoke (infos [selected].Item2 ? "" : Path.GetFileName (infos [selected].Item1));
|
||||
FileChanged?.Invoke (infos [selected].Item2 && !canChooseDirectories ? "" : Path.GetFileName (infos [selected].Item1));
|
||||
if (SelectedChanged != null) {
|
||||
var sel = infos [selected];
|
||||
SelectedChanged ((sel.Item1, sel.Item2));
|
||||
|
||||
Reference in New Issue
Block a user