File tree 2 files changed +8
-2
lines changed
arduino-ide-extension/src
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export class MonitorModel implements FrontendApplicationContribution {
39
39
this . _darkTheme = false ;
40
40
this . _wsPort = 0 ;
41
41
this . _serialPort = '' ;
42
- this . _connected = false ;
42
+ this . _connected = true ;
43
43
44
44
this . onChangeEmitter = new Emitter <
45
45
MonitorModel . State . Change < keyof MonitorModel . State >
Original file line number Diff line number Diff line change @@ -132,10 +132,13 @@ export class MonitorService extends CoreClientAware implements Disposable {
132
132
}
133
133
134
134
if ( ! this . board ?. fqbn || ! this . port ?. address || ! this . port ?. protocol ) {
135
+ this . updateClientsSettings ( { monitorUISettings : { connected : false } } ) ;
136
+
135
137
return Status . CONFIG_MISSING ;
136
138
}
137
139
138
140
if ( this . uploadInProgress ) {
141
+ this . updateClientsSettings ( { monitorUISettings : { connected : false } } ) ;
139
142
return Status . UPLOAD_IN_PROGRESS ;
140
143
}
141
144
@@ -389,7 +392,10 @@ export class MonitorService extends CoreClientAware implements Disposable {
389
392
}
390
393
391
394
this . updateClientsSettings ( {
392
- ...settings ,
395
+ monitorUISettings : {
396
+ ...settings . monitorUISettings ,
397
+ connected : ! ! this . duplex ,
398
+ } ,
393
399
pluggableMonitorSettings : reconciledSettings ,
394
400
} ) ;
395
401
You can’t perform that action at this time.
0 commit comments