mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 16:57:22 +01:00
Modal wasn't closed after saving
This commit is contained in:
parent
ddc65ab5a6
commit
c6b8e74733
1 changed files with 1 additions and 3 deletions
|
|
@ -92,8 +92,6 @@ public class CompactUi : Window, IDisposable
|
|||
|
||||
public override void Draw()
|
||||
{
|
||||
_showModalForUserAddition = _configuration.OpenPopupOnAdd;
|
||||
|
||||
_windowContentWidth = UiShared.GetWindowContentRegionWidth();
|
||||
UiShared.DrawWithID("header", DrawUIDHeader);
|
||||
ImGui.Separator();
|
||||
|
|
@ -153,7 +151,7 @@ public class CompactUi : Window, IDisposable
|
|||
TransferPartHeight = ImGui.GetCursorPosY() - TransferPartHeight;
|
||||
}
|
||||
|
||||
if (_showModalForUserAddition && _apiController.LastAddedUser != null)
|
||||
if (_configuration.OpenPopupOnAdd && _apiController.LastAddedUser != null)
|
||||
{
|
||||
_lastAddedUser = _apiController.LastAddedUser;
|
||||
_apiController.LastAddedUser = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue