mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
Add exception handling on Clipboard.SetText, fall back to SetDataObject
This commit is contained in:
@@ -2293,7 +2293,21 @@ namespace renderdocui.Windows
|
||||
|
||||
if (e.KeyCode == Keys.C && e.Control)
|
||||
{
|
||||
Clipboard.SetText(texStatusDim.Text + " | " + statusLabel.Text);
|
||||
try
|
||||
{
|
||||
Clipboard.SetText(texStatusDim.Text + " | " + statusLabel.Text);
|
||||
}
|
||||
catch (System.Exception)
|
||||
{
|
||||
try
|
||||
{
|
||||
Clipboard.SetDataObject(texStatusDim.Text + " | " + statusLabel.Text);
|
||||
}
|
||||
catch (System.Exception)
|
||||
{
|
||||
// give up!
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!m_Core.LogLoaded) return;
|
||||
|
||||
Reference in New Issue
Block a user