Skip to content

Commit

Permalink
fix for empty initial search
Browse files Browse the repository at this point in the history
  • Loading branch information
Hex0ffset committed Apr 4, 2024
1 parent 42311bd commit fb2b4d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UEDumper/Frontend/Windows/LiveEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ void windows::LiveEditor::performSearch(const std::string searchString)
{
auto lowercasedSearchString = convertToLowercase(searchString);

if (previousSearchText != "" && lowercasedSearchString == previousSearchText) return;
if (lowercasedSearchString == previousSearchText) return;
previousSearchText = lowercasedSearchString;

bDisplayPaths = false;
Expand Down
2 changes: 1 addition & 1 deletion UEDumper/Frontend/Windows/LiveEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace windows
static inline std::vector<EditorTab> tabs{};

static inline char searchText[512] = { 0 };
static inline std::string previousSearchText;
static inline std::string previousSearchText = "0xDEADBEEF";
static inline int searchResultPicked = 0; // which search result they picked
static inline std::string searchResultMember; // what member they clicked on
static inline std::vector<Node> searchResults; // actual search results
Expand Down

0 comments on commit fb2b4d6

Please sign in to comment.