mirror of https://github.com/buggins/dlangui.git
minor improvement file dialog
show selected directory in textbox this gives a better visual feedback to the user when selecting directories e.g. by mouse click.
This commit is contained in:
parent
d47825e6aa
commit
85a2b5007f
|
|
@ -336,12 +336,11 @@ class FileDialog : Dialog, CustomGridCellAdapter {
|
|||
/// file list item selected
|
||||
protected void onItemSelected(int index) {
|
||||
DirEntry e = _entries[index];
|
||||
string fname = e.name;
|
||||
_edFilename.text = toUTF32(baseName(fname));
|
||||
if (e.isDir) {
|
||||
_edFilename.text = ""d;
|
||||
_filename = "";
|
||||
} else if (e.isFile) {
|
||||
string fname = e.name;
|
||||
_edFilename.text = toUTF32(baseName(fname));
|
||||
_filename = fname;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue