Skip to content

Commit

Permalink
Don't set focused to nullptr when opening new UI dialogs
Browse files Browse the repository at this point in the history
This messes up custom focusing logic (e.g. when you open certain window
and manually set focus). CUIFocusSystem::Update will deal with cleanup
otherwise.
  • Loading branch information
Xottab-DUTY committed Jan 20, 2025
1 parent fec9086 commit f38295a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/xrGame/UIDialogHolder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ void CDialogHolder::StartMenu(CUIDialogWnd* pDialog, bool bDoHideIndicators)
CurrentGameUI()->ShowGameIndicators(false);
}
}
UI().Focus().SetFocused(nullptr);
pDialog->SetHolder(this);

if (pDialog->NeedCursor())
Expand Down

0 comments on commit f38295a

Please sign in to comment.