Repository: ai-shifu/ChatALL (language: javascript)

Issue:
[BUG]Under certain conditions, settings cannot be pressed.
After a few quick clicks on a setting, the setting cannot be opened afterwards.

Conditions: Windows 11 (latest version as of 06/23/2023) 
ChatALL 1.18.35


Discussion / hints:
I made a mistake. The version of ChatALL is 1.28.35.

Fix patch:
diff --git a/src/App.vue b/src/App.vue
index 07e851b42..247a50f1e 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -74,7 +74,8 @@
 </template>
 
 <script setup>
-import { ref, computed, onMounted } from "vue";
+import { ref, computed, onMounted, nextTick } from "vue";
+
 import { useTheme } from "vuetify";
 import { useStore } from "vuex";
 import { v4 as uuidv4 } from "uuid";
@@ -113,7 +114,11 @@ const columns = computed(() => store.state.columns);
 const changeColumns = (columns) => store.commit("changeColumns", columns);
 const setUuid = (uuid) => store.commit("setUuid", uuid);
 
-function openSettingsModal() {
+async function openSettingsModal() {
+  if (isSettingsOpen.value) { // click too fast
+    isSettingsOpen.value = false;
+    await nextTick();
+  } 
   isSettingsOpen.value = true;
 }
 


Test patch: