Emptying the Recycle Bin stops when the preview window is closed

オープン
#2,068 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

  • #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時間
マージ済み PR(30日)
3

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

QL-Win/QuickLook のほかの issue

QL-Win/QuickLook の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。