Update: xpython板卡工具栏添加烧录额外固件选项
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user