Update: xpython板卡工具栏添加烧录额外固件选项

This commit is contained in:
王立帮
2024-10-06 23:27:42 +08:00
parent 9fe0abb852
commit 56204fe160
9 changed files with 179 additions and 73 deletions

View File

@@ -507,6 +507,22 @@ class App extends Component {
weight: 1
});
this.#nav_.register({
icon: 'icon-upload-1',
id: ['setting', 'firmware'],
displayText: Msg.Lang['nav.btn.setting.firmware'],
preconditionFn: () => {
if (goog.isElectron) {
return !!BOARD?.burn?.special;
} else {
return !!BOARD?.web?.burn?.special;
}
},
callback: () => BU.burnWithSpecialBin(),
scopeType: Nav.Scope.RIGHT,
weight: 2
});
this.#nav_.register({
icon: 'icon-comment-1',
id: ['setting', 'feedback'],
@@ -519,7 +535,7 @@ class App extends Component {
Url.open(href);
},
scopeType: Nav.Scope.RIGHT,
weight: 2
weight: 3
});
}