diff --git a/qController.Standard/Classes/Communication/QController.cs b/qController.Standard/Classes/Communication/QController.cs index bb36f7b..b0de85e 100644 --- a/qController.Standard/Classes/Communication/QController.cs +++ b/qController.Standard/Classes/Communication/QController.cs @@ -26,7 +26,6 @@ namespace qController qClient.qParser.CueInfoUpdated += this.OnCueUpdateReceived; qClient.sendArgsUDP("/updates", 1); qClient.sendAndReceiveString("/cueLists"); - } public void sendCommand(string cmd){ @@ -48,6 +47,8 @@ namespace qController qWorkspace = args.UpdatedWorkspace; Console.WriteLine("Workspace updated in QController: " + qWorkspace.workspace_id); qWorkspace.PrintStats(); + playbackPosition = null; + qClient.UpdateSelectedCue(); } public void OnPlaybackPositionUpdated(object source, PlaybackPositionArgs args) @@ -60,6 +61,10 @@ namespace qController { qWorkspace.UpdateCue(args.Cue); Console.WriteLine("Cue updated in QController: " + args.Cue.uniqueID ); + if (playbackPosition == null) + { + playbackPosition = args.Cue.uniqueID; + } } public void Kill(){ qUpdater.Kill(); diff --git a/qController.Standard/Classes/Communication/QParser.cs b/qController.Standard/Classes/Communication/QParser.cs index ae640b1..865c33c 100644 --- a/qController.Standard/Classes/Communication/QParser.cs +++ b/qController.Standard/Classes/Communication/QParser.cs @@ -62,10 +62,7 @@ namespace qController { if (msg.Address.Contains("valuesForKeys")) { - if (msg.Address.Contains("selected")) - ParseSelectedCueInfo(msg); - else - ParseCueUpdateInfo(msg); + ParseCueUpdateInfo(msg); } else if (msg.Address.Contains("notes")) ParseNoteInfo(msg); @@ -86,7 +83,6 @@ namespace qController } } - } public void ParsePositionUpdateInfo(OscMessage msg)