From 1c14e8fbcec5176a53b7f4923ca8c4237a37b91f Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Fri, 17 Jun 2022 20:37:53 +1000
Subject: Make swept-nodes-area leave space for at least 1 non-leaf

Also fix sweep-to-parent setting not being saved.
---
 src/components/SettingsModal.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/SettingsModal.vue')

diff --git a/src/components/SettingsModal.vue b/src/components/SettingsModal.vue
index 965abc1..595b145 100644
--- a/src/components/SettingsModal.vue
+++ b/src/components/SettingsModal.vue
@@ -39,7 +39,7 @@ export default defineComponent({
 			this.$emit('tree-change');
 		},
 		onSave(){
-			const savedLytOpts = ['tileSpacing', 'minTileSz', 'maxTileSz', 'layoutType', 'sweepMode', ];
+			const savedLytOpts = ['tileSpacing', 'minTileSz', 'maxTileSz', 'layoutType', 'sweepMode', 'sweepToParent', ];
 			for (let prop of savedLytOpts){
 				localStorage.setItem('lyt ' + prop, String(this.lytOpts[prop as keyof LayoutOptions]));
 			}
-- 
cgit v1.2.3

