Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(electron): cannot restart recording the same app again (#11498)

pengx17f0aafda509a6
diff --git a/packages/frontend/apps/electron/src/main/recording/state-machine.ts b/packages/frontend/apps/electron/src/main/recording/state-machine.ts
index 33ac218105..148c2cbb21 100644
--- a/packages/frontend/apps/electron/src/main/recording/state-machine.ts
+++ b/packages/frontend/apps/electron/src/main/recording/state-machine.ts
@@ -141,7 +141,8 @@ export class RecordingStateMachine {
if (
appGroup &&
- currentStatus?.appGroup?.processGroupId === appGroup.processGroupId
+ currentStatus?.appGroup?.processGroupId === appGroup.processGroupId &&
+ currentStatus.status === 'new'
) {
return {
...currentStatus,