mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-21 16:13:57 +00:00
Make calendar auto-open when no other tabs
This commit is contained in:
parent
57b66256c7
commit
0dbcefa723
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
* 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.
|
* If your project does not use dynamic layers, this should just return all layers.
|
||||||
|
|
Loading…
Reference in a new issue