Emptying the Recycle Bin stops when the preview window is closed

未关闭
#2,068 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

  • #2069 来自 @mohamadsm313m-prog —— 已关闭,未合并

评估

难度
3/5
预计耗时
1-2 天
新手友好度
57/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
csharp
领域
desktop

调研方向

Start at the Recycle Bin preview button that calls SHEmptyRecycleBin in the QuickLook viewer process, and trace how that operation is launched. The issue proposes a detached QuickLook.exe --empty-recycle-bin helper; check how command-line arguments are handled. Done means emptying continues after the preview closes or another file is previewed, without blocking the viewer.

由索引模型根据 Issue 内容生成。

描述

Description

When the Recycle Bin is previewed, the "Empty Recycle Bin" button runs SHEmptyRecycleBin inside the QuickLook viewer process. Because the preview is unloaded whenever the window closes or another file is previewed, the deletion is aborted in those cases. The operation also runs on the UI thread, so the viewer stops responding until the deletion finishes.

Steps to reproduce
  1. Open the Recycle Bin in Explorer (with some files in it).
  2. Press Space to preview it with QuickLook and press the "Empty Recycle Bin" button, then confirm.
  3. Immediately close the preview window, or press Space on another file in Explorer.
  4. The Recycle Bin is not emptied (or only partially emptied).
Expected behavior

The deletion should keep running in the background, independent of the preview window, until the Recycle Bin is empty.

Environment
  • QuickLook 4.5.0
  • Windows 11 (10.0.26100)
Proposed fix

Run the emptying in a detached QuickLook.exe --empty-recycle-bin helper process (see the linked pull request).

主要语言
C#
星标
25.7k
派生
1.4k
平均合并
3 天 19 小时
30 天内合并 PR
3

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

QL-Win/QuickLook 的其他 Issue

查看 QL-Win/QuickLook 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。