diff --git a/mediaportal/Core/guilib/GraphicContext.cs b/mediaportal/Core/guilib/GraphicContext.cs index 07edeb7331c..9f7f29d3d12 100644 --- a/mediaportal/Core/guilib/GraphicContext.cs +++ b/mediaportal/Core/guilib/GraphicContext.cs @@ -917,6 +917,9 @@ public static Rectangle VideoWindow /// public static State CurrentState { get; set; } + // addendum to indicate that the system is powering off and not just rebooting + public static bool StoppingToPowerOff { get; set; } + /// /// Get pointer to the applications form (needed by overlay windows) /// diff --git a/mediaportal/MediaPortal.Application/MediaPortal.cs b/mediaportal/MediaPortal.Application/MediaPortal.cs index 6450c34356f..647bee15d84 100644 --- a/mediaportal/MediaPortal.Application/MediaPortal.cs +++ b/mediaportal/MediaPortal.Application/MediaPortal.cs @@ -3785,7 +3785,8 @@ private void OnAction(Action action) _restartOptions = RestartOptions.PowerOff; _useRestartOptions = true; GUIGraphicsContext.CurrentState = GUIGraphicsContext.State.STOPPING; - ShuttingDown = true; + GUIGraphicsContext.StoppingToPowerOff = true; + ShuttingDown = true; break; case 1031: