Добавлены переводы промптов и изменен размер окна негативных промптов
This commit is contained in:
1 parent
ec5b85573c
commit
6e2defe3b6
3 files changed
+322
-3
No files matched your search
@@ -3,6 +3,7 @@ from PyQt6.QtWidgets import (QDialog, QVBoxLayout, QHBoxLayout, QTreeWidget,
|
||||
QScrollArea, QWidget, QCheckBox, QFrame)
|
||||
from PyQt6.QtCore import Qt, pyqtSignal
|
||||
from .prompt_categories import PROMPT_CATEGORIES
|
||||
from .prompt_translations import PROMPT_TRANSLATIONS
|
||||
|
||||
class PromptWindow(QDialog):
|
||||
prompt_selected = pyqtSignal(str)
|
||||
@@ -195,5 +196,7 @@ class PromptWindow(QDialog):
|
||||
def add_selected(self):
|
||||
"""Добавление выбранных промптов"""
|
||||
if self.selected_prompts:
|
||||
prompts_text = ", ".join(sorted(self.selected_prompts))
|
||||
# Преобразуем русские названия в английские
|
||||
translated_prompts = [PROMPT_TRANSLATIONS.get(prompt, prompt) for prompt in self.selected_prompts]
|
||||
prompts_text = ", ".join(sorted(translated_prompts))
|
||||
self.prompt_selected.emit(prompts_text)
|
||||
Reference in new issue
Block a user