Skip to content

prompt restart when using fonts not available on start#356

Merged
eagleoflqj merged 4 commits intomasterfrom
dev
Apr 3, 2026
Merged

prompt restart when using fonts not available on start#356
eagleoflqj merged 4 commits intomasterfrom
dev

Conversation

@eagleoflqj
Copy link
Copy Markdown
Member

@eagleoflqj eagleoflqj commented Apr 3, 2026

Closes #352

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds detection of user-installed fonts that appear after startup (which WKWebView can’t pick up without restart) and surfaces a restart prompt in the config UI when such fonts are selected.

Changes:

  • Record user font families at process start and detect newly added font families when selecting a font.
  • Show a restart prompt/action in the config UI when a newly added user font is chosen.
  • Update/introduce zh-Hans/zh-Hant Localizable.strings entries and reuse a shared userFontDir constant.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/server.swift Captures user font families at launch for later “new font” detection.
src/config/font.swift Adds user font directory constant + font-family enumeration utilities.
src/config/FontView.swift Flags when a selected font comes from newly added user fonts.
src/config/SplitConfig.swift Displays restart prompt/button when new fonts are detected.
src/config/ExternalView.swift Uses shared userFontDir constant when opening Fonts folder.
assets/zh-Hant.lproj/Localizable.strings Adds/updates Traditional Chinese localization strings.
assets/zh-Hans.lproj/Localizable.strings Adds/updates Simplified Chinese localization strings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/config/SplitConfig.swift
Comment thread src/config/SplitConfig.swift
Comment thread src/config/SplitConfig.swift
Comment thread src/config/FontView.swift Outdated
Comment thread src/config/font.swift Outdated
Comment thread src/server.swift Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 3, 2026

arm64 comparison

No difference.

x86_64 comparison

No difference.

eagleoflqj and others added 3 commits April 2, 2026 23:25
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@eagleoflqj eagleoflqj merged commit d96cec9 into master Apr 3, 2026
7 checks passed
@eagleoflqj eagleoflqj deleted the dev branch April 3, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

雾凇拼音的拆字反查功能异常,结果中存在大量空候选项

2 participants