Fix surveillance camera closing (#28374)

The boilerplate sucks but I haven't thought of something good.
This commit is contained in:
metalgearsloth 2024-05-30 03:25:09 +10:00 committed by null
parent 48151c4d7e
commit bf59f7dbc6
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
1 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@ public sealed class SurveillanceCameraSetupBoundUi : BoundUserInterface
_window.OpenCentered();
_window.OnNameConfirm += SendDeviceName;
_window.OnNetworkConfirm += SendSelectedNetwork;
_window.OnClose += Close;
}
private void SendSelectedNetwork(int idx)
@ -63,7 +63,8 @@ public sealed class SurveillanceCameraSetupBoundUi : BoundUserInterface
if (disposing)
{
_window!.Dispose();
_window?.Dispose();
_window = null;
}
}
}