Skip to content

Commit c71c63f

Browse files
committed
[mono] XenAdmin: MainWindow: Disable registering the ClipboardViewer
Doesn't work on Mono, so just disable it. The impact in unknown. The ClipboardViewer must be a crossplatform to revert this hotfix commit and restore lost functionality. Signed-off-by: Ilya Stolyarov <[email protected]>
1 parent 26e40e3 commit c71c63f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

XenAdmin/MainWindow.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,13 @@ protected override void OnShown(EventArgs e)
391391
protected override void OnHandleCreated(EventArgs e)
392392
{
393393
base.OnHandleCreated(e);
394-
Clip.RegisterClipboardViewer();
394+
if (Type.GetType("Mono.Runtime") == null) {
395+
Clip.RegisterClipboardViewer();
396+
}
397+
else
398+
{
399+
// TODO: Clipboard doesn't work under Mono
400+
}
395401
}
396402

397403
protected override void WndProc(ref System.Windows.Forms.Message e)

0 commit comments

Comments
 (0)