mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-12-03 18:42:25 +07:00
[PR #355] [MERGED] [fix] 解决一个可能导致启动失败的问题 & 解决firefox下提示词框体显示问题的样式方案 #357
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Physton/sd-webui-prompt-all-in-one#357
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Physton/sd-webui-prompt-all-in-one/pull/355
Author: @PTCMode
Created: 12/13/2024
Status: ✅ Merged
Merged: 12/14/2024
Merged by: @Physton
Base:
main← Head:main📝 Commits (2)
31fef02[fix] 添加一个临时解决firefox下提示词显示问题的样式方案2938717[fix] 修复一个由于遗留锁导致UI加载可能会失败的问题📊 Changes
11 files changed (+138 additions, -102 deletions)
View changed files
📝
scripts/on_app_started.py(+11 -12)📝
scripts/physton_prompt/get_lang.py(+1 -3)📝
scripts/physton_prompt/get_translate_apis.py(+2 -5)📝
scripts/physton_prompt/history.py(+4 -5)📝
scripts/physton_prompt/storage.py(+82 -71)📝
scripts/physton_prompt/styles.py(+1 -2)➕
styles/extensions/firefox-fix/manifest.json(+8 -0)➕
styles/extensions/firefox-fix/style.less(+26 -0)➕
styles/extensions/firefox-fix/style.min.css(+1 -0)📝
tests/privacy_api_config.py(+1 -2)📝
tests/translate.py(+1 -2)📄 Description
由于插件启动时Storage类会写存储文件,如果文件锁由于某些原因没有被删除时,会永远等待锁释放导致启动失败。
所以在Storage类初始化时尝试查找并删除遗留的锁,并将Storage类转换为全局类,防止多次删除遗留锁
firefox下提示词框体显示问题:

使用修复样式后:

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.