Make calendar auto-open when no other tabs

This commit is contained in:
thepaperpilot 2022-12-24 21:56:02 -06:00
parent 57b66256c7
commit 0dbcefa723

View file

@ -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.