Emptying the Recycle Bin stops when the preview window is closed

Abierto
#2,068 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

  • #2069 de @mohamadsm313m-prog — cerrado sin fusionar

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
57/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp
Área
desktop

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).

Lenguaje dominante
C#
Estrellas
25.7k
Forks
1.4k
Merge medio
3 d 19 h
PR fusionados (30 d)
3

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de QL-Win/QuickLook

Todos los issues de QL-Win/QuickLook

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.