aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-24 21:45:05 -0400
committerbobzel <zzzman@gmail.com>2020-08-24 21:45:05 -0400
commit3c5c7be2c84f4afeff045727ebd4f33622e2de2b (patch)
tree27d4d915bf6c0f4296ba36d53216ccdcd45fc1b1 /src
parent015a08f56f9dda8b63ab139750a9ade6a964eff6 (diff)
fixed saving order of golden layout tabs
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/CollectionDockingView.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx
index 9ed3247ae..e7f54ff86 100644
--- a/src/client/views/collections/CollectionDockingView.tsx
+++ b/src/client/views/collections/CollectionDockingView.tsx
@@ -631,7 +631,15 @@ export class CollectionDockingView extends CollectionSubView(doc => doc) {
}
}
+ stackActiveChanged = () => {
+ try {
+ CollectionDockingView.Instance._ignoreStateChange = JSON.stringify(CollectionDockingView.Instance._goldenLayout.toConfig());
+ this.stateChanged();
+ } catch (e) { } // catch exception thrown when config has not been initialzed yet
+ }
+
stackCreated = (stack: any) => {
+ stack.layoutManager.on("activeContentItemChanged", this.stackActiveChanged);
//stack.header.controlsContainer.find('.lm_popout').hide();
stack.header.element.on('mousedown', (e: any) => {
if (e.target === stack.header.element[0] && e.button === 1) {