aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionMenu.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-04-11 12:34:51 -0400
committerbobzel <zzzman@gmail.com>2021-04-11 12:34:51 -0400
commit470240a50c3af2ff29a6d61ee256374e70933eb9 (patch)
tree5886fd6619115cbe5316cfb9a1d0441d82e5e2e4 /src/client/views/collections/CollectionMenu.tsx
parent35e13a3aba2ec0d67f49d70b4f453c8b1592c42c (diff)
updated startRect to use mediaState and added pendingRecording as an option.
Diffstat (limited to 'src/client/views/collections/CollectionMenu.tsx')
-rw-r--r--src/client/views/collections/CollectionMenu.tsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionMenu.tsx b/src/client/views/collections/CollectionMenu.tsx
index 337595f1c..a26953ff6 100644
--- a/src/client/views/collections/CollectionMenu.tsx
+++ b/src/client/views/collections/CollectionMenu.tsx
@@ -399,10 +399,7 @@ export class CollectionViewBaseChrome extends React.Component<CollectionMenuProp
@undoBatch
@action
startRecording = () => {
- const doc = Docs.Create.ScreenshotDocument("", { _fitWidth: true, _width: 400, _height: 200, title: "screen snapshot", system: true, cloneFieldFilter: new List<string>(["system"]) });
- doc.x = 0;
- doc.y = 0;
- doc.startRec = true;
+ const doc = Docs.Create.ScreenshotDocument("screen recording", { _fitWidth: true, _width: 400, _height: 200, mediaState: "pendingRecording" });
//Doc.AddDocToList((Doc.UserDoc().myOverlayDocs as Doc), undefined, doc);
CollectionDockingView.AddSplit(doc, "right");
}