mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-08 00:43:48 +00:00
Fix persistant storage functions I broke?
This commit is contained in:
@@ -53,8 +53,9 @@ namespace qController
|
||||
}
|
||||
|
||||
public void Close(){
|
||||
udpListener.Close();
|
||||
|
||||
thread.Abort();
|
||||
udpListener.Close();
|
||||
}
|
||||
|
||||
protected virtual void OnUpdateMessageReceived(OscMessage msg)
|
||||
|
||||
@@ -21,7 +21,8 @@ namespace qController
|
||||
|
||||
public static void AddInstance(string name, string address){
|
||||
if(!Contains(name,address)){
|
||||
qInstances.Add(new QInstance(name, address));
|
||||
AddInstance(new QInstance(name, address));
|
||||
Console.WriteLine("Adding Instance: " + name + " @ " + address);
|
||||
}
|
||||
}
|
||||
public static void AddInstance(QInstance q){
|
||||
|
||||
@@ -96,12 +96,6 @@ namespace qController
|
||||
});
|
||||
}
|
||||
|
||||
void showToast(string message){
|
||||
var toastConfig = new ToastConfig(message);
|
||||
toastConfig.SetDuration(3000);
|
||||
toastConfig.SetPosition(ToastPosition.Bottom);
|
||||
UserDialogs.Instance.Toast(toastConfig);
|
||||
}
|
||||
|
||||
async void Scan(object sender, EventArgs e){
|
||||
bool workspacesFound = false;
|
||||
@@ -129,5 +123,13 @@ namespace qController
|
||||
}
|
||||
}
|
||||
|
||||
void showToast(string message)
|
||||
{
|
||||
var toastConfig = new ToastConfig(message);
|
||||
toastConfig.SetDuration(3000);
|
||||
toastConfig.SetPosition(ToastPosition.Bottom);
|
||||
UserDialogs.Instance.Toast(toastConfig);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user