Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions Ticky.Web/Components/Dialogs/EditCardModal.razor
Original file line number Diff line number Diff line change
Expand Up @@ -513,11 +513,20 @@

public override void Dispose()
{
if (_pasteObjRef is null)
return;
if (_pasteObjRef is not null)
{
_pasteObjRef.Dispose();
_pasteObjRef = null;
}

if (_timer is not null)
{
_timer.Stop();
_timer.Dispose();
_timer = null;
}
Comment thread
dkorecko marked this conversation as resolved.

_pasteObjRef.Dispose();
_pasteObjRef = null;
base.Dispose();
}

private async Task CopyDeepLink()
Expand Down Expand Up @@ -592,12 +601,22 @@
if(_card is null || targetRecord is null)
{
if (_timer is not null)
{
_timer.Stop();
_timer.Dispose();
}

return;
}

_ongoingTimer = DateTime.Now - targetRecord.StartedAt;
StateHasChanged();

if (_timer is not null)
{
_timer.Stop();
_timer.Dispose();
}

_timer = new System.Timers.Timer(1000);
_timer.Elapsed += OnTimerTick;
Expand Down
Loading