/// <summary> /// Happens when a cell of the column is double-clicked. /// </summary> /// <param name="columnName">Column's name.</param> /// <param name="pe">Entry associated with the clicked cell.</param> public override void PerformCellAction(string columnName, PwEntry pe) { if (!_plugin.TOTPEntryValidator.CanGenerateTOTP(pe)) { UIUtil.ShowDialogAndDestroy(new SetupTOTP(_plugin, pe)); } else if (_plugin.Settings.TOTPColumnCopyEnable) { _plugin.TOTPCopyToClipboard(pe); } }
/// <summary> /// Happens when a cell of the column is double-clicked. /// </summary> /// <param name="strColumnName">Column's name.</param> /// <param name="pe">Entry associated with the clicked cell.</param> public override void PerformCellAction(string strColumnName, PwEntry pe) { if (strColumnName == null) { throw new ArgumentNullException("strColumnName"); } if (m_host.CustomConfig.GetBool(setname_bool_TOTPColumnCopy_Enable, true)) { plugin.TOTPCopyToClipboard(pe); } }