Skip to content

Commit c58803b

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

XenAdmin/MainWindow.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) Cloud Software Group, Inc.
1+
/* Copyright (c) Cloud Software Group, Inc.
22
*
33
* Redistribution and use in source and binary forms,
44
* with or without modification, are permitted provided
@@ -153,7 +153,9 @@ public MainWindow(string[] args)
153153
Icon = Properties.Resources.AppIcon;
154154

155155
//CA-270999: Add registration to RestartManager
156-
RegisterApplicationRestart(null, 0);
156+
if (Type.GetType("Mono.Runtime") == null) {
157+
RegisterApplicationRestart(null, 0);
158+
}
157159

158160
#region Add Tab pages
159161

0 commit comments

Comments
 (0)