fix: macos and ui

This commit is contained in:
DecDuck
2025-03-15 15:05:35 +11:00
parent 81e4f98529
commit cac815224d
4 changed files with 45 additions and 24 deletions
+3 -1
View File
@@ -126,6 +126,7 @@ import { invoke } from "@tauri-apps/api/core";
const loading = ref(false);
const error = ref<string | undefined>();
let offerManualTimeout: NodeJS.Timeout | undefined;
const offerManual = ref(false);
const manualToken = ref("");
const manualLoading = ref(false);
@@ -139,8 +140,9 @@ function authWrapper_wrapper() {
auth().catch((e) => {
loading.value = false;
error.value = e;
if(offerManualTimeout) clearTimeout(offerManualTimeout);
});
setTimeout(() => {
offerManualTimeout = setTimeout(() => {
offerManual.value = true;
}, 10000);
}