Repository navigation
feat: 添加播放页屏幕常亮设置 - #196
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增“外观设置 → 播放页 → 播放时保持屏幕常亮”开关,默认关闭。开启后,仅在主窗口播放页展开且正在播放时保持屏幕常亮;暂停、收起、最小化或隐藏窗口后释放
主进程复用原生播放事件和现有电源管理,通过 Electron
powerSaveBlocker分别管理音频防休眠与屏幕常亮。设置由主进程持久化,并在页面重载、渲染进程退出和应用退出时清理相关状态验证:类型检查、526 项现有测试及 Electron 构建通过;ESLint 无错误,有 2 条既有警告。桌面系统息屏实测尚未完成