From b114d27ce2b562c70492a95be69e04efb522d637 Mon Sep 17 00:00:00 2001 From: emerycp Date: Tue, 1 Aug 2023 17:16:48 -0400 Subject: [PATCH] NK-92 - Fix when creating a new file --- Editor/src/Windows/FileSystemUI.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Editor/src/Windows/FileSystemUI.cpp b/Editor/src/Windows/FileSystemUI.cpp index 68ae7a99..0c213fcc 100644 --- a/Editor/src/Windows/FileSystemUI.cpp +++ b/Editor/src/Windows/FileSystemUI.cpp @@ -593,7 +593,10 @@ namespace Nuake FileSystem::FilteredDirectories = FileSystem::SearchFilesWithKeyword(m_searchKeyWord, FileSystem::RootDirectory->fullPath); RefreshFileBrowser(); - // TODO: Fix when creating a new file + if(m_searchKeyWord.empty()) + { + FileSystem::FilteredDirectories.clear(); + } }