From 0dbcefa723c8e8549840c66101d3f949f44de9b2 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 24 Dec 2022 21:56:02 -0600 Subject: [PATCH] Make calendar auto-open when no other tabs --- src/data/projEntry.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx index 39a16df..1906342 100644 --- a/src/data/projEntry.tsx +++ b/src/data/projEntry.tsx @@ -739,6 +739,12 @@ export const main = createLayer("main", function (this: BaseLayer) { }; }); +watchEffect(() => { + if (player.tabs.length === 1) { + main.minimized.value = false; + } +}); + /** * Given a player save data object being loaded, return a list of layers that should currently be enabled. * If your project does not use dynamic layers, this should just return all layers.