Compare commits

...

3 Commits

Author SHA1 Message Date
jwetzell a6bcac5adf bump version to v1.2.1 2024-10-30 21:00:58 -05:00
jwetzell 98180dcfc4 Merge pull request #276 from tm1000/bugfix/delete-devices
Delete devices by null coalesce if never connected
2024-10-30 20:57:02 -05:00
Andrew Nagy eb7867f687 Fix bug in deleting devices 2024-10-30 18:55:38 -07:00
5 changed files with 37 additions and 8 deletions
+29
View File
@@ -0,0 +1,29 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Electron: Main",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"runtimeArgs": ["--remote-debugging-port=9223", "."],
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
}
},
{
"name": "Electron: Renderer",
"type": "chrome",
"request": "attach",
"port": 9223,
"webRoot": "${workspaceFolder}",
"timeout": 30000
}
],
"compounds": [
{
"name": "Electron: All",
"configurations": ["Electron: Main", "Electron: Renderer"]
}
]
}
+1 -1
View File
@@ -2,7 +2,7 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"eslint.validate": ["javascript"],
"html.validate.styles": false // accept templates inside HTML style attributes
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "cue-view",
"version": "1.2.0",
"version": "1.2.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "cue-view",
"version": "1.2.0",
"version": "1.2.1",
"license": "CC BY-SA 4.0",
"dependencies": {
"@jwetzell/posistagenet": "^1.1.0",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "cue-view",
"productName": "Cue View",
"version": "1.2.0",
"version": "1.2.1",
"description": "A dashboard for everything in your show",
"main": "main.js",
"scripts": {
+4 -4
View File
@@ -257,13 +257,13 @@ module.exports.deleteActive = function deleteActive() {
if (choice) {
if (device.plugin.config.connectionType === 'TCPsocket') {
device.connection.destroy();
device.connection?.destroy();
} else if (device.plugin.config.connectionType === 'UDPsocket') {
device.connection.close();
device.connection?.close();
} else if (device.plugin.config.connectionType === 'multicast') {
device.connection.close();
device.connection?.close();
} else if (device.plugin.config.connectionType.startsWith('osc')) {
device.connection.close();
device.connection?.close();
}
VIEW.removeDeviceFromList(device);
delete devices[device.id];