From 7b234cf1c7e3c08f71e7709649f7e4f76ecf8f64 Mon Sep 17 00:00:00 2001 From: Martin Vladic Date: Sun, 6 Oct 2024 18:20:07 +0200 Subject: [PATCH] #558 --- .../project/ui/ProjectEditor.tsx | 23 ++++++++++++++++++- packages/project-editor/store/index.ts | 8 ++++++- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/packages/project-editor/project/ui/ProjectEditor.tsx b/packages/project-editor/project/ui/ProjectEditor.tsx index 0e92319e..bebeee66 100644 --- a/packages/project-editor/project/ui/ProjectEditor.tsx +++ b/packages/project-editor/project/ui/ProjectEditor.tsx @@ -47,6 +47,7 @@ import { extensionsManagerStore } from "home/extensions-manager/extensions-manager"; import { LVGLGroupsTab } from "project-editor/lvgl/groups"; +import { settingsController } from "home/settings"; //////////////////////////////////////////////////////////////////////////////// @@ -303,7 +304,24 @@ const Content = observer( icon = ; numMessages = section.numWarnings; } else { - icon = ; + icon = ( + + ); numMessages = 0; } @@ -472,6 +490,9 @@ const Content = observer( checksSection.numWarnings; checksSection.loading; + this.context.lastRevisionStable; + this.context.lastSuccessfulBuildRevision; + const sectionOutput = this.context.outputSectionsStore.getSection( Section.OUTPUT ); diff --git a/packages/project-editor/store/index.ts b/packages/project-editor/store/index.ts index c9979f25..fb4bf246 100644 --- a/packages/project-editor/store/index.ts +++ b/packages/project-editor/store/index.ts @@ -174,6 +174,8 @@ export class ProjectStore { lastRevision: symbol; lastRevisionStable: symbol; + lastSuccessfulBuildRevision: symbol | undefined; + filePath: string | undefined; backgroundCheckEnabled = true; @@ -248,6 +250,7 @@ export class ProjectStore { savedRevision: observable, lastRevision: observable, lastRevisionStable: observable, + lastSuccessfulBuildRevision: observable, isModified: computed, setModified: action, updateLastRevisionStable: action, @@ -782,7 +785,10 @@ export class ProjectStore { LayoutModels.OUTPUT_TAB_ID ); } else { - notification.info("Build done."); + runInAction(() => { + this.lastSuccessfulBuildRevision = this.lastRevisionStable; + }); + notification.info("Build successful.", { autoClose: 1000 }); } return result; }