mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-17 05:13:40 +00:00
* QStorage.cs: Fix AddInstance to actually check Contains
* MenuPage.xaml.cs: * ControlPage.xaml.cs: * qConnectionPage.xaml.cs: Add ability to change cue name in menu
This commit is contained in:
@@ -143,6 +143,22 @@ namespace qController
|
||||
}
|
||||
}
|
||||
|
||||
public void ChangeCueName(string cue_id, string name){
|
||||
for(int i = 0; i < items.Count; i++)
|
||||
{
|
||||
if (items[i].Command.Contains(cue_id))
|
||||
{
|
||||
var item = items[i];
|
||||
items.RemoveAt(i);
|
||||
item.Title = name;
|
||||
items.Insert(i, item);
|
||||
Console.WriteLine("CUE OBJECT FOUND IN MENU TRYING TO UPDATE");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void ChangeToHome()
|
||||
{
|
||||
items.Clear();
|
||||
|
||||
Reference in New Issue
Block a user