file picker: fix reset query button not working
This commit is contained in:
parent
d6569a40f5
commit
5e8f3e7577
1 changed files with 3 additions and 1 deletions
|
|
@ -1461,10 +1461,12 @@ bool FurnaceFilePicker::draw(ImGuiWindowFlags winFlags) {
|
|||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button(ICON_FA_REPEAT "##ClearFilter")) {
|
||||
filter="";
|
||||
if (isSearch) {
|
||||
newDir=path;
|
||||
} else {
|
||||
filterFiles();
|
||||
}
|
||||
filter="";
|
||||
}
|
||||
ImGui::SetItemTooltip(_("Clear search query"));
|
||||
ImGui::SameLine();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue