8000 Add button to launch package installer · arduino/lab-micropython-editor@f5b23e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit f5b23e4

Browse files
committed
Add button to launch package installer
1 parent 3ccc723 commit f5b23e4

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

ui/arduino/media/install-package.svg

Lines changed: 33 additions & 0 deletions
Loading

ui/arduino/views/components/toolbar.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,18 @@ function Toolbar(state, emit) {
9090
})}
9191
9292
</div>
93+
94+
<div>
95+
${!window.BridgeWindow.isLinux() ? Button({
96+
icon: 'install-package.svg',
97+
tooltip: `Install Package`,
98+
active: true,
99+
onClick: () => {
100+
if(state.isConnected) emit('disconnect') // Package installer requires exclusive access to the serial port
101+
emit('launch-app', 'micropython-package-installer://', 'https://github.com/arduino/lab-micropython-package-installer/releases/latest')
102+
}
103+
}) : '' }
104+
</div>
93105
</div>
94106
`
95107
}

0 commit comments

Comments
 (0)
0