File Name Clears When Selecting Folder #48
gabrielAtManticore
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
It wouldn't look good if multiple files were previously selected. Filename input field would continue showing if( filenameContributingFileCount == 0 )
{
// If multiple files were previously selected, clear the input field. If a single file was selected, preserve the filename
if( filenameInputField.text.StartsWith( "\"" ) )
filenameInputField.text = string.Empty;
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
My idea would be to approximate what's already established as a UX. I went
ahead and tested the multi-file case in Windows and it does not clear the
field in that case. That said, it's a very niche use case, so in my opinion
it could go either way.
…On Tue, May 18, 2021 at 2:22 AM Süleyman Yasir KULA < ***@***.***> wrote:
It wouldn't look good if multiple files were previously selected. Filename
input field would continue showing "File1" "File2" "File3" .... But we
can reset the input field text if only a single file was previously
selected. What do you think:
if( filenameContributingFileCount == 0 )
{
// If multiple files were previously selected, clear the input field. If a single file was selected, preserve the filename
if( filenameInputField.text.StartsWith( "\"" ) )
filenameInputField.text = string.Empty;
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGAWRWYXHRIMUPMK34MFTLTTOIWUJANCNFSM45BKV46Q>
.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Makes sense to me, you know all the edge cases much better!
…On Thu, May 20, 2021 at 11:53 AM Süleyman Yasir KULA < ***@***.***> wrote:
When a lot of files are selected, only the first few files are included in
the filename input field and the rest are replaced with ... for
performance reasons (imagine selecting all files in a directory and that
the directory had hundreds of files, generating a string from these files'
names and then updating the Text with that string would take unnecessarily
long time). So the filename input field doesn't match the selection for
large selections and I think it is best to clear the input field in that
case.
But perhaps a better way would be to clear the input field only if it
starts with " and ends with ....
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#48 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGAWRW4V3YPFSYWGKJ5HGE3TOVLC7ANCNFSM45BKV46Q>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I just started using the file browser and noticed that when saving a file, if you click on any folder it clears the name of the file. This doesn't seem like the normal UX pattern on Windows or Mac. This can be changed by removing line 2190 of FileBrowser.cs where it says:
This fixes my immediate problem, but I don't know yet if this change would cause other issues. The name still updates when I click on a file, which is fine. So far so good.
Beta Was this translation helpful? Give feedback.
All reactions