mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-15 04:13:52 +00:00
QLab 5 connection changes
This commit is contained in:
@@ -21,8 +21,14 @@ namespace qController.Communication
|
||||
private void OnConnectionStatusChanged(object source, ConnectEventArgs args)
|
||||
{
|
||||
Log.Debug("QUPDATER - Connection Status Changed: " + args.Status);
|
||||
if (args.Status == "ok")
|
||||
|
||||
if (args.Status.Contains("ok"))
|
||||
{
|
||||
//new sort of connect format for QLab 5 ok:view|control|edit is connection good
|
||||
if(args.Status.Contains(":") && !args.Status.Contains("view"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
qController.qClient.sendTCP("/workspace/" + qController.qWorkspace.workspace_id + "/updates", 1);
|
||||
qController.qClient.sendTCP("/workspace/" + qController.qWorkspace.workspace_id + "/cueLists");
|
||||
}
|
||||
|
||||
@@ -94,6 +94,12 @@ namespace qController.QItems
|
||||
|
||||
public bool CheckPopulated()
|
||||
{
|
||||
if(data == null)
|
||||
{
|
||||
IsPopulated = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < data.Count; i++)
|
||||
{
|
||||
for (int j = 0; j < data[i].cues.Count; j++)
|
||||
|
||||
Reference in New Issue
Block a user