Skip to content

feat(lock): 补充关机/重启黑屏开关 enableShutdownBlackWidget 配置 - #85

Merged
mhduiy merged 1 commit into
linuxdeepin:masterfrom
mhduiy:feat-shutdown-blackwidget-v25
Sep 8, 2026
Merged

mhduiy merged 1 commit into
linuxdeepin:masterfrom
mhduiy:feat-shutdown-blackwidget-v25

Conversation

@mhduiy

@mhduiy mhduiy commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

变更内容

  1. 在 snipe 配置补全 enableShutdownBlackWidget 默认开启定义
  2. 供 ShutdownBlackWidget 判断是否启用关机/重启黑屏界面

PMS: TASK-395319
Influence: 关机/重启黑屏可通过该配置开关

Summary by Sourcery

New Features:

  • Add the enableShutdownBlackWidget configuration option to control the shutdown and restart black-screen interface.

@sourcery-ai

sourcery-ai Bot commented Sep 7, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

通过补充 snipe 默认配置 enableShutdownBlackWidget,为关机/重启黑屏界面增加可配置的启停开关,默认保持启用。

File-Level Changes

Change Details Files
补全关机/重启黑屏功能的配置开关,并为其提供默认启用值。
  • 在 snipe 配置中新增 enableShutdownBlackWidget 默认配置项
  • 供 ShutdownBlackWidget 读取该配置并决定是否启用黑屏界面
configs/snipe/org.deepin.dde.lock.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

1. Add enableShutdownBlackWidget to the V25 snipe DConfig metadata.
2. Enable it by default while keeping the existing shutdown overlay configurable.

Log: Add the V25 DConfig switch for the shutdown overlay.
Influence: Allow products to disable the lock overlay.

feat(lock): 添加关机遮罩配置

1. 在 V25 snipe DConfig 元数据中添加 enableShutdownBlackWidget。
2. 默认启用该配置,同时保留关机遮罩的可配置能力。

Log: 为 V25 添加关机遮罩 DConfig 开关。
PMS: TASK-395319
Influence: 允许产品关闭锁屏关机遮罩。
Change-Id: Icae30f48e0d365c58b5be929aa20f43fbb5dcecb
@mhduiy
mhduiy force-pushed the feat-shutdown-blackwidget-v25 branch from f373412 to 3942e7a Compare September 7, 2026 10:58
deepin-ci-robot added a commit to linuxdeepin/dde-session-shell-snipe that referenced this pull request Sep 7, 2026
Synchronize source files from linuxdeepin/dde-session-shell.

Source-pull-request: linuxdeepin/dde-session-shell#85
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mhduiy, yixinshark

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mhduiy
mhduiy merged commit 32778fb into linuxdeepin:master Sep 8, 2026
14 of 15 checks passed
mhduiy pushed a commit to linuxdeepin/dde-session-shell-snipe that referenced this pull request Sep 9, 2026
Synchronize source files from linuxdeepin/dde-session-shell.

Source-pull-request: linuxdeepin/dde-session-shell#85
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.

3 participants