Update: 在线版调整web usb

This commit is contained in:
王立帮
2025-01-20 00:20:29 +08:00
parent 8d52915859
commit eb4fa79529
8 changed files with 333 additions and 3 deletions

View File

@@ -239,6 +239,9 @@ class App extends Component {
id: 'command-burn-btn',
displayText: Msg.Lang['nav.btn.burn'],
preconditionFn: () => {
if (!goog.isElectron && !goog.hasSocketServer && Serial.type !== 'serialport') {
return false;
}
return SELECTED_BOARD?.nav?.burn;
},
callback: () => BU.initBurn(),