File tree 2 files changed +29
-2
lines changed
2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ import {
47
47
extensionsManagerStore
48
48
} from "home/extensions-manager/extensions-manager" ;
49
49
import { LVGLGroupsTab } from "project-editor/lvgl/groups" ;
50
+ import { settingsController } from "home/settings" ;
50
51
51
52
////////////////////////////////////////////////////////////////////////////////
52
53
@@ -303,7 +304,24 @@ const Content = observer(
303
304
icon = < Icon icon = "material:warning" className = "warning" /> ;
304
305
numMessages = section . numWarnings ;
305
306
} else {
306
- icon = < Icon icon = "material:check" className = "info" /> ;
307
+ icon = (
308
+ < Icon
309
+ icon = "material:check"
310
+ className = "info"
311
+ style = {
312
+ node . getId ( ) == LayoutModels . OUTPUT_TAB_ID &&
313
+ this . context . lastSuccessfulBuildRevision ==
314
+ this . context . lastRevision
315
+ ? {
316
+ color : settingsController . isDarkTheme
317
+ ? "#27FB2C"
318
+ : "#00FF21" ,
319
+ fontWeight : "bold"
320
+ }
321
+ : undefined
322
+ }
323
+ />
324
+ ) ;
307
325
numMessages = 0 ;
308
326
}
309
327
@@ -472,6 +490,9 @@ const Content = observer(
472
490
checksSection . numWarnings ;
473
491
checksSection . loading ;
474
492
493
+ this . context . lastRevisionStable ;
494
+ this . context . lastSuccessfulBuildRevision ;
495
+
475
496
const sectionOutput = this . context . outputSectionsStore . getSection (
476
497
Section . OUTPUT
477
498
) ;
Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ export class ProjectStore {
174
174
lastRevision : symbol ;
175
175
lastRevisionStable : symbol ;
176
176
177
+ lastSuccessfulBuildRevision : symbol | undefined ;
178
+
177
179
filePath : string | undefined ;
178
180
backgroundCheckEnabled = true ;
179
181
@@ -248,6 +250,7 @@ export class ProjectStore {
248
250
savedRevision : observable ,
249
251
lastRevision : observable ,
250
252
lastRevisionStable : observable ,
253
+ lastSuccessfulBuildRevision : observable ,
251
254
isModified : computed ,
252
255
setModified : action ,
253
256
updateLastRevisionStable : action ,
@@ -782,7 +785,10 @@ export class ProjectStore {
782
785
LayoutModels . OUTPUT_TAB_ID
783
786
) ;
784
787
} else {
785
- notification . info ( "Build done." ) ;
788
+ runInAction ( ( ) => {
789
+ this . lastSuccessfulBuildRevision = this . lastRevisionStable ;
790
+ } ) ;
791
+ notification . info ( "Build successful." , { autoClose : 1000 } ) ;
786
792
}
787
793
return result ;
788
794
}
You can’t perform that action at this time.
0 commit comments