mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03:43 +01:00
fix: always set IsFocused to false when closing a window
This commit is contained in:
parent
395328eb17
commit
3f927ee7f0
4 changed files with 21 additions and 7 deletions
|
|
@ -2,6 +2,8 @@ using System.Numerics;
|
|||
|
||||
using Dalamud.Game.ClientState.Keys;
|
||||
using ImGuiNET;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Serilog;
|
||||
|
||||
namespace Dalamud.Interface.Windowing
|
||||
{
|
||||
|
|
@ -109,13 +111,7 @@ namespace Dalamud.Interface.Windowing
|
|||
public bool IsOpen
|
||||
{
|
||||
get => this.internalIsOpen;
|
||||
set
|
||||
{
|
||||
this.internalIsOpen = value;
|
||||
|
||||
if (value == false)
|
||||
this.IsFocused = false;
|
||||
}
|
||||
set => this.internalIsOpen = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -174,6 +170,8 @@ namespace Dalamud.Interface.Windowing
|
|||
{
|
||||
this.internalLastIsOpen = this.internalIsOpen;
|
||||
this.OnClose();
|
||||
|
||||
this.IsFocused = false;
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue