mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-16 11:13:23 +00:00
make a newly manually added device the active device
This commit is contained in:
+2
-1
@@ -95,7 +95,7 @@ window.init = function init() {
|
||||
};
|
||||
|
||||
document.getElementById('add-device-button').onchange = function addDeviceClick(e) {
|
||||
DEVICE.registerDevice(
|
||||
const newDevice = DEVICE.registerDevice(
|
||||
{
|
||||
type: e.target.value,
|
||||
defaultName: 'New Device',
|
||||
@@ -106,6 +106,7 @@ window.init = function init() {
|
||||
);
|
||||
e.target.selectedIndex = 0;
|
||||
|
||||
VIEW.switchDevice(newDevice.id);
|
||||
SAVESLOTS.saveAll();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user