From 97fc02b601df5f8ac40531b9831a2b1bccdd9ad1 Mon Sep 17 00:00:00 2001 From: mschill Date: Tue, 16 Dec 2025 06:03:18 -0500 Subject: [PATCH] Code Cleanup - Added a debug for developers around Clipboard setting Data Objects via the StepTabRibbon. Will be verified during the internal vogtle cleanup. --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 08618d12..482e4c1a 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -1667,7 +1667,18 @@ namespace Volian.Controls.Library } } Clipboard.Clear(); - Clipboard.SetDataObject(myDO, true); // this saves the cleaned up information to the Windows clipboard + + //Try to update the data object to persist beyond PROMS life + //if can't, log it and use old method of scoping clipboard to PROMS life + try + { + Clipboard.SetDataObject(myDO, true); // this saves the cleaned up information to the Windows clipboard + } + catch (Exception ex) + { + _MyLog.Warn($"Error Setting Clipboard Object to Persist beyond PROMS. Clipboard will be scoped to PROMS. Error:{ex.Message}"); + Clipboard.SetDataObject(myDO); // this saves the cleaned up information to the Windows clipboard + } } iData = Clipboard.GetDataObject(); bool noEquationData = true;