From 5c127e53a329ff694088f46b4e0a5588b99cb2eb Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Sun, 15 Jan 2023 00:44:52 +1100
Subject: Reset events upon change of 'images only' setting

---
 src/components/SettingsModal.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

diff --git a/src/components/SettingsModal.vue b/src/components/SettingsModal.vue
index d9caa34..bb82016 100644
--- a/src/components/SettingsModal.vue
+++ b/src/components/SettingsModal.vue
@@ -88,7 +88,7 @@ const saveIndRef = ref(null as HTMLDivElement | null);
 const store = useStore();
 
 // Events
-const emit = defineEmits(['close']);
+const emit = defineEmits(['close', 'change']);
 
 // Settings change handling
 const saved = ref(false); // Set to true after a setting is saved
@@ -102,6 +102,7 @@ const lastCtg = computed(() => { // When all but one category is disabled, names
 });
 function onSettingChg(option: string){ 
 	store.save(option);
+	emit('change', option);
 	// Make 'Saved' indicator appear/animate
 	if (!saved.value){
 		saved.value = true;
-- 
cgit v1.2.3

