mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
fix: grab focus for installer when opening the error modal
This commit is contained in:
parent
7e44a8461f
commit
485eda2c61
1 changed files with 4 additions and 0 deletions
|
|
@ -386,6 +386,10 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller
|
|||
|
||||
if (this.errorModalOnNextFrame)
|
||||
{
|
||||
// NOTE(goat): ImGui cannot open a modal if no window is focused, at the moment.
|
||||
// If people click out of the installer into the game while a plugin is installing, we won't be able to show a modal if we don't grab focus.
|
||||
ImGui.SetWindowFocus(this.WindowName);
|
||||
|
||||
ImGui.OpenPopup(modalTitle);
|
||||
this.errorModalOnNextFrame = false;
|
||||
this.errorModalDrawing = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue