Skip to content

Conversation

@mark-sil
Copy link
Contributor

@mark-sil mark-sil commented Jan 27, 2026

Cherry-pick from the PubSub branch to the main branch using the following command:
git cherry-pick --no-commit b82f926

After the cherry-pick additional edits were made to resolve conflicts and standardize on the use of:
using static SIL.FieldWorks.Common.FwUtils.FwUtils;


This change is Reviewable

Cherry-pick from the PubSub branch to the main branch using
the following command:
git cherry-pick --no-commit b82f926

After the cherry-pick additional edits were made to resolve
conflicts and standardize on the use of:
using static SIL.FieldWorks.Common.FwUtils.FwUtils;
Copy link
Contributor Author

@mark-sil mark-sil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mark-sil made 1 comment.
Reviewable status: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @papeh).

@mark-sil mark-sil merged commit 9b1e98b into main Jan 27, 2026
4 of 5 checks passed
@mark-sil mark-sil deleted the LT-21512 branch January 27, 2026 17:38
public void Dispose(bool disposeCalled)
{
System.Diagnostics.Debug.WriteLineIf(!disposeCalled, "****** Missing Dispose() call for " + GetType().Name + ". ****** ");
Subscriber.Unsubscribe(EventConstants.GetContentControlParameters, GetContentControlParameters);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought, unsubscribing during garbage collection may not be a good idea.

Subscriber.Unsubscribe(EventConstants.ReloadAreaTools, ReloadAreaTools);
Subscriber.Unsubscribe(EventConstants.GetContentControlParameters, GetContentControlParameters);

// Dispose managed resources here.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for example:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants