From 8338885af58e8a3335423319f14aa51229980be1 Mon Sep 17 00:00:00 2001 From: Dan Garner Date: Sun, 26 Feb 2017 11:05:17 +0000 Subject: [PATCH] Implement revert to schedule xibosignage/xibo#1053 --- Logic/Schedule.cs | 5 +++++ XiboClient.csproj.user | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Logic/Schedule.cs b/Logic/Schedule.cs index 064cba23..1848185b 100644 --- a/Logic/Schedule.cs +++ b/Logic/Schedule.cs @@ -362,6 +362,11 @@ void _xmrSubscriber_OnAction(Action.PlayerActionInterface action) { switch (action.GetActionName()) { + case RevertToSchedulePlayerAction.Name: + _scheduleManager.ClearLayoutChangeActions(); + _scheduleManager.RunNow(); + break; + case "collectNow": // Run all of the various agents wakeUpXmds(); diff --git a/XiboClient.csproj.user b/XiboClient.csproj.user index 0d2084c6..f47e3196 100644 --- a/XiboClient.csproj.user +++ b/XiboClient.csproj.user @@ -1,7 +1,8 @@  - o + +