fix(onboarding): adjust language selection logic to skip if already set and update prompt text

This commit is contained in:
Will Miao
2025-09-03 19:22:53 +08:00
parent 6b738a4769
commit 5520aecbba
2 changed files with 8 additions and 2 deletions

View File

@@ -117,7 +117,7 @@
border: 1px solid var(--lora-border);
border-radius: var(--border-radius-base);
padding: var(--space-3);
min-width: 400px;
min-width: 510px;
text-align: center;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
backdrop-filter: blur(10px);

View File

@@ -91,6 +91,12 @@ export class OnboardingManager {
return;
}
// If language has already been set, skip language selection
if (getStorageItem('onboarding_language_set')) {
this.startTutorial();
return;
}
// Show language selection first
await this.showLanguageSelection();
}
@@ -106,7 +112,7 @@ export class OnboardingManager {
modal.innerHTML = `
<div class="language-selection-content">
<h2>Welcome to LoRA Manager</h2>
<p>Choose your preferred language to get started, or continue with English.</p>
<p>Choose Your Language / 选择语言 / 言語を選択</p>
<div class="language-grid">
${this.languages.map(lang => `
<div class="language-option" data-language="${lang.code}">