Skip to content

Commit

Permalink
Merge branch 'WerWolv:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
paxcut authored Oct 12, 2023
2 parents 7ca28de + 5a71cc2 commit 4a45638
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions plugins/builtin/source/content/tools_entries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,14 +666,12 @@ namespace hex::plugin::builtin {
static std::string resultTitle, resultExtract;
static std::future<HttpRequest::Result<std::string>> searchProcess;
static bool extendedSearch = false;

std::string searchString;
static std::string searchString;

ImGui::Header("hex.builtin.tools.wiki_explain.control"_lang, true);

bool startSearch;
bool startSearch = ImGui::InputTextIcon("##search", ICON_VS_SYMBOL_KEY, searchString, ImGuiInputTextFlags_EnterReturnsTrue);

startSearch = ImGui::InputTextIcon("##search", ICON_VS_SYMBOL_KEY, searchString, ImGuiInputTextFlags_EnterReturnsTrue);
ImGui::SameLine();

ImGui::BeginDisabled((searchProcess.valid() && searchProcess.wait_for(0s) != std::future_status::ready) || searchString.empty());
Expand Down Expand Up @@ -713,11 +711,13 @@ namespace hex::plugin::builtin {

resultTitle.clear();
resultExtract.clear();
searchString.clear();
} else {
extendedSearch = false;
searchString.clear();
}
} catch (...) {
searchString.clear();
resultTitle.clear();
resultExtract.clear();
extendedSearch = false;
Expand Down
2 changes: 1 addition & 1 deletion plugins/builtin/source/content/ui_items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ namespace hex::plugin::builtin {

ImGui::TextFormatted("{}", tabProvider->getName().c_str());

const auto &description = provider->getDataDescription();
const auto &description = tabProvider->getDataDescription();
if (!description.empty()) {
ImGui::Separator();
if (ImGui::GetIO().KeyShift && !description.empty()) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/builtin/source/content/views/view_achievements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ namespace hex::plugin::builtin {
auto tooltipSize = achievementSize * ImVec2(4, 0);

// Draw achievement tooltip when hovering over it
if (ImGui::IsMouseHoveringRect(position, position + achievementSize)) {
if (ImGui::IsWindowHovered() && ImGui::IsMouseHoveringRect(position, position + achievementSize)) {
ImGui::SetNextWindowPos(tooltipPos);
ImGui::SetNextWindowSize(tooltipSize);
if (ImGui::BeginTooltip()) {
Expand Down

0 comments on commit 4a45638

Please sign in to comment.