Merge pull request #28 from xPumaa/main

Modal wasn't closed after saving
This commit is contained in:
rootdarkarchon
2022-10-07 14:23:37 +02:00
committed by GitHub

View File

@@ -92,8 +92,6 @@ public class CompactUi : Window, IDisposable
public override void Draw() public override void Draw()
{ {
_showModalForUserAddition = _configuration.OpenPopupOnAdd;
_windowContentWidth = UiShared.GetWindowContentRegionWidth(); _windowContentWidth = UiShared.GetWindowContentRegionWidth();
UiShared.DrawWithID("header", DrawUIDHeader); UiShared.DrawWithID("header", DrawUIDHeader);
ImGui.Separator(); ImGui.Separator();
@@ -153,7 +151,7 @@ public class CompactUi : Window, IDisposable
TransferPartHeight = ImGui.GetCursorPosY() - TransferPartHeight; TransferPartHeight = ImGui.GetCursorPosY() - TransferPartHeight;
} }
if (_showModalForUserAddition && _apiController.LastAddedUser != null) if (_configuration.OpenPopupOnAdd && _apiController.LastAddedUser != null)
{ {
_lastAddedUser = _apiController.LastAddedUser; _lastAddedUser = _apiController.LastAddedUser;
_apiController.LastAddedUser = null; _apiController.LastAddedUser = null;