Skip to content

Commit c492bf7

Browse files
committed
🚸 移除一开始打开软件时的闪白,对眼睛不好
1 parent 054284e commit c492bf7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

app/src/core/service/dataFileService/fileLoader.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Serialized } from "../../../types/node";
22
import { exists, readTextFile } from "../../../utils/fs";
33
import { Camera } from "../../stage/Camera";
4-
import { Stage } from "../../stage/Stage";
54
import { StageLoader } from "../../stage/StageLoader";
65
import { StageHistoryManager } from "../../stage/stageManager/StageHistoryManager";
76
import { StageManager } from "../../stage/stageManager/StageManager";
@@ -11,7 +10,6 @@ import { ImageNode } from "../../stage/stageObject/entity/ImageNode";
1110
import { Section } from "../../stage/stageObject/entity/Section";
1211
import { TextNode } from "../../stage/stageObject/entity/TextNode";
1312
import { UrlNode } from "../../stage/stageObject/entity/UrlNode";
14-
import { ViewFlashEffect } from "../feedbackService/effectEngine/concrete/ViewFlashEffect";
1513
import { PenStroke } from "../../stage/stageObject/entity/PenStroke";
1614
import { PortalNode } from "../../stage/stageObject/entity/PortalNode";
1715
import { PathString } from "../../../utils/pathString";
@@ -43,7 +41,6 @@ export namespace FileLoader {
4341
StageHistoryManager.reset(data);
4442

4543
Camera.reset();
46-
Stage.effectMachine.addEffect(ViewFlashEffect.SaveFile());
4744
RecentFileManager.addRecentFile({
4845
path: path,
4946
time: new Date().getTime(),

0 commit comments

Comments
 (0)