From 72cdc7bfbb672b6d9f06efe02faaa1a816076dc5 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Sat, 25 Jun 2022 20:01:38 +1000
Subject: Fix settings not saving if closed by other_modal/etc

---
 src/components/SearchModal.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue
index a3fbd14..166c9f8 100644
--- a/src/components/SearchModal.vue
+++ b/src/components/SearchModal.vue
@@ -72,7 +72,7 @@ export default defineComponent({
 		},
 		onSearchModeChg(){
 			this.uiOpts.searchJumpMode = !this.uiOpts.searchJumpMode;
-			this.$emit('settings-chg', [], ['searchJumpMode']);
+			this.$emit('setting-chg', 'searchJumpMode');
 		},
 		resolveSearch(tolNodeName: string){
 			if (tolNodeName == ''){
@@ -191,7 +191,7 @@ export default defineComponent({
 		(this.$refs.searchInput as HTMLInputElement).focus();
 	},
 	components: {SearchIcon, InfoIcon, LogInIcon, },
-	emits: ['search', 'close', 'info-click', 'settings-chg', ],
+	emits: ['search', 'close', 'info-click', 'setting-chg', ],
 });
 </script>
 
-- 
cgit v1.2.3

