aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Doc.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-09-13 12:51:37 -0400
committerbobzel <zzzman@gmail.com>2022-09-13 12:51:37 -0400
commit743f4ab3a65babedb30b8ae9575e9b3583e52b3d (patch)
tree503277c9cf659b2fefc92ebbd80586975e2468f2 /src/fields/Doc.ts
parentecc97b7d09f66b25a19b1e33d547e32d2f0a591d (diff)
fixed activePresentation to work properly with multiple dashboards. fixed undoing PinDoc.
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r--src/fields/Doc.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts
index 86b4da792..cf505c45b 100644
--- a/src/fields/Doc.ts
+++ b/src/fields/Doc.ts
@@ -225,13 +225,13 @@ export class Doc extends RefField {
public static get ActiveTool(): InkTool {
return StrCast(Doc.UserDoc().activeTool, InkTool.None) as InkTool;
}
- public static get ActivePresentation() {
+ public static get ActivePresentation(): Opt<Doc> {
return DocCast(Doc.ActiveDashboard?.activePresentation);
}
public static set ActivePresentation(val) {
- if (Doc.ActiveDashboard) {
+ if (Doc.ActiveDashboard) {
Doc.ActiveDashboard.activePresentation = val;
- }
+ }
}
constructor(id?: FieldId, forceSave?: boolean) {
super(id);