mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 07:05:43 -03:00
fix(onboarding): adjust language selection logic to skip if already set and update prompt text
This commit is contained in:
@@ -117,7 +117,7 @@
|
|||||||
border: 1px solid var(--lora-border);
|
border: 1px solid var(--lora-border);
|
||||||
border-radius: var(--border-radius-base);
|
border-radius: var(--border-radius-base);
|
||||||
padding: var(--space-3);
|
padding: var(--space-3);
|
||||||
min-width: 400px;
|
min-width: 510px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
|
|||||||
@@ -91,6 +91,12 @@ export class OnboardingManager {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If language has already been set, skip language selection
|
||||||
|
if (getStorageItem('onboarding_language_set')) {
|
||||||
|
this.startTutorial();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Show language selection first
|
// Show language selection first
|
||||||
await this.showLanguageSelection();
|
await this.showLanguageSelection();
|
||||||
}
|
}
|
||||||
@@ -106,7 +112,7 @@ export class OnboardingManager {
|
|||||||
modal.innerHTML = `
|
modal.innerHTML = `
|
||||||
<div class="language-selection-content">
|
<div class="language-selection-content">
|
||||||
<h2>Welcome to LoRA Manager</h2>
|
<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">
|
<div class="language-grid">
|
||||||
${this.languages.map(lang => `
|
${this.languages.map(lang => `
|
||||||
<div class="language-option" data-language="${lang.code}">
|
<div class="language-option" data-language="${lang.code}">
|
||||||
|
|||||||
Reference in New Issue
Block a user