Skip to content

Commit a0133d5

Browse files
author
Silver Valdvee
committed
Fix Windows transport list lacking info, electron announce
1 parent 77d5621 commit a0133d5

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

yukon/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2023.3.41"
1+
__version__ = "2023.3.42"

yukon/web/main/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ window.console = new Proxy(old_console, {
116116
if (!isRunningInElectron(yukon_state)) {
117117
zubax_api.announce_running_in_browser();
118118
document.title = "Yukon (browser)";
119+
} else {
120+
zubax_api.announce_running_in_electron();
119121
}
120122

121123
function setUpMonitorComponent() {

yukon/web/modules/panels/registers.module.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ export function add_node_id_headers(table_header_row, yukon_state) {
119119
table_header_cell.style.setProperty("max-width", widthFromSettings + "px", "important");
120120
// Add a listener to the hover event of table_header_cell
121121
table_header_cell.addEventListener('mouseover', function () {
122-
console.log("Mouse over node id header");
123122
isMouseOverLoopRunning = true;
124123
let myInterval = null;
125124
myInterval = setInterval(function () {

yukon/web/modules/panels/transports.module.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function initTransports(container, yukon_state) {
2626
if (productId == 24600) {
2727
return "Dronecode probe"
2828
} else if (productId == 24775) {
29-
return "Babel (CAN to USB)"
29+
return "Zubax"
3030
}
3131
return null;
3232

@@ -55,9 +55,14 @@ export function initTransports(container, yukon_state) {
5555
option.disabled = true;
5656
}
5757
let device_name = port.usb_description;
58+
// If the operating system is windows, then display detectDeviceFromProductId instead
59+
if (window.navigator.platform == "Win32") {
60+
device_name = detectDeviceFromProductId(port.product_id);
61+
}
5862
if (device_name == null) {
5963
device_name = port.description;
6064
}
65+
option.title = JSON.stringify(port);
6166
option.text = port.device + " — " + device_name;
6267
sTransport.add(option);
6368
}

0 commit comments

Comments
 (0)