Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/MenuVisibilityManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,15 @@ namespace QuickLoot
{
PROFILE_SCOPE;

// Prevent reentry to avoid infinite recursion
static bool refreshing = false;
if (refreshing) {
return;
}
refreshing = true;
struct RefreshGuard {
~RefreshGuard() { refreshing = false; }
} refreshGuard;
// Don't refresh while the console is open to work around the missing cursor bug
// (any menu events while the console is open cause the cursor to disappear)
if (RE::UI::GetSingleton()->IsMenuOpen(RE::Console::MENU_NAME)) {
Expand Down Expand Up @@ -424,4 +433,4 @@ namespace QuickLoot
}

#pragma warning(pop)
}
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep the newline at the end