fix: reset search when navigating into a FileDialog folder (#1197)

Currently, using the search bar and navigating into a folder keeps the same search query, so you need to clear it if you want to actually choose a file inside the folder you were searching for. This clears the search bar when navigating into a folder.
This commit is contained in:
Kara 2023-05-10 09:05:09 -07:00 committed by GitHub
parent e7dbc85310
commit 48c00da429
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,6 +258,7 @@ public partial class FileDialog
private void SetPath(string path)
{
this.searchBuffer = string.Empty;
this.selectedSideBar = string.Empty;
this.currentPath = path;
this.files.Clear();