mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix imgui stalling due to endless open/close popup loop on deleting unselected mod.
This commit is contained in:
parent
44bbf546f6
commit
fb5648b176
1 changed files with 2 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ namespace Penumbra.UI
|
|||
{
|
||||
ImGui.PushFont( UiBuilder.IconFont );
|
||||
|
||||
if( ImGui.Button( FontAwesomeIcon.Trash.ToIconString(), SelectorButtonSizes * _selectorFactor ) )
|
||||
if( ImGui.Button( FontAwesomeIcon.Trash.ToIconString(), SelectorButtonSizes * _selectorFactor ) && _index >= 0 )
|
||||
{
|
||||
_deleteIndex = _index;
|
||||
}
|
||||
|
|
@ -362,6 +362,7 @@ namespace Penumbra.UI
|
|||
|
||||
if( Mod == null )
|
||||
{
|
||||
_deleteIndex = null;
|
||||
ImGui.CloseCurrentPopup();
|
||||
ImGui.EndPopup();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue