public void SetIgnored(string ownerId, bool ignore) { var changed = ignore ? ignoredOwnerIds.Add(ownerId) : ignoredOwnerIds.Remove(ownerId); if (changed) { Handle.ForceSaveChanges(); } }
public void ShowPublishPrompt() { if (PublisherIsReady()) { UpdateCustomOptionsUsage(); Find.WindowStack.Add(new Dialog_PublishLogsOptions( "HugsLib_logs_shareConfirmTitle".Translate(), "HugsLib_logs_shareConfirmMessage".Translate(), optionsHandle.Value ) { OnUpload = OnPublishConfirmed, OnCopy = CopyToClipboard, OnOptionsToggled = UpdateCustomOptionsUsage, OnPostClose = () => optionsHandle.ForceSaveChanges() }); } else { ShowPublishDialog(); } }