@@ -119,30 +119,26 @@ export class LibraryListWidget extends ListWidget<
119
119
message . appendChild ( question ) ;
120
120
const result = await new MessageBoxDialog ( {
121
121
title : nls . localize (
122
- 'arduino/library/dependenciesForLibrary' ,
123
- 'Dependencies for library {0}:{1}' ,
124
- item . name ,
125
- version
122
+ 'arduino/library/installLibraryDependencies' ,
123
+ 'Install library dependencies'
126
124
) ,
127
125
message,
128
126
buttons : [
129
- nls . localize ( 'vscode/issueMainService/cancel' , 'Cancel' ) ,
130
127
nls . localize (
131
- 'arduino/library/installOnly' ,
132
- 'Install {0} only' ,
133
- item . name
128
+ 'arduino/library/installWithoutDependencies' ,
129
+ 'Install without dependencies'
134
130
) ,
135
- nls . localize ( 'arduino/library/installAll' , 'Install all ' ) ,
131
+ nls . localize ( 'arduino/library/installAll' , 'Install All ' ) ,
136
132
] ,
137
133
maxWidth : 740 , // Aligned with `settings-dialog.css`.
138
134
} ) . open ( ) ;
139
135
140
136
if ( result ) {
141
137
const { response } = result ;
142
- if ( response === 1 ) {
138
+ if ( response === 0 ) {
143
139
// Current only
144
140
installDependencies = false ;
145
- } else if ( response === 2 ) {
141
+ } else if ( response === 1 ) {
146
142
// All
147
143
installDependencies = true ;
148
144
}
@@ -203,7 +199,11 @@ class MessageBoxDialog extends AbstractDialog<MessageBoxDialog.Result> {
203
199
const button = this . createButton ( text ) ;
204
200
const isPrimaryButton =
205
201
index === ( options . buttons ? options . buttons . length - 1 : 0 ) ;
206
- button . classList . add ( isPrimaryButton ? 'main' : 'secondary' ) ;
202
+ button . title = text ;
203
+ button . classList . add (
204
+ isPrimaryButton ? 'main' : 'secondary' ,
205
+ 'message-box-dialog-button'
206
+ ) ;
207
207
this . controlPanel . appendChild ( button ) ;
208
208
this . toDisposeOnDetach . push (
209
209
addEventListener ( button , 'click' , ( ) => {
0 commit comments