fix adding two cams with same ip

bump version
This commit is contained in:
2025-05-31 23:44:27 +02:00
parent 4a5e7f291f
commit 72501532fe

View File

@@ -14,7 +14,7 @@ namespace robospot_camera_finder
{ {
public partial class MainForm : Form public partial class MainForm : Form
{ {
public string VERSION = "1.0.0"; public string VERSION = "1.1.0";
private BindingList<Camera> all_cameras = new(); private BindingList<Camera> all_cameras = new();
@@ -235,7 +235,7 @@ namespace robospot_camera_finder
{ {
string ipAddress = manualForm.ipAddress; string ipAddress = manualForm.ipAddress;
Camera camera_to_add = new Camera("Camera " + ipAddress, ipAddress, "", ""); Camera camera_to_add = new Camera("Camera " + ipAddress, ipAddress, "", "CAM_FINDER_" + DateTime.Now.Ticks.ToString());
add_camera(camera_to_add); add_camera(camera_to_add);
} }
} }