File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
ui/arduino/views/components Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,15 @@ function Toolbar(state, emit) {
6969 disabled : ! _canSave ,
7070 onClick : ( ) => emit ( 'save' )
7171 } ) }
72+ < div class ="separator "> </ div >
73+ ${ ! window . BridgeWindow . isLinux ( ) ? Button ( {
74+ icon : 'install-package.svg' ,
75+ label : `Add Package` ,
76+ onClick : ( ) => {
77+ if ( state . isConnected ) emit ( 'disconnect' ) // Package installer requires exclusive access to the serial port
78+ emit ( 'launch-app' , 'micropython-package-installer://' , 'https://github.com/arduino/lab-micropython-package-installer/releases/latest' )
79+ }
80+ } ) : '' }
7281 </ div >
7382
7483 < div id ="app-views ">
@@ -90,18 +99,6 @@ function Toolbar(state, emit) {
9099 } ) }
91100
92101 </ div >
93-
94- < div >
95- ${ ! window . BridgeWindow . isLinux ( ) ? Button ( {
96- icon : 'install-package.svg' ,
97- label : `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 >
105102 </ div >
106103 `
107104}
You can’t perform that action at this time.
0 commit comments