d2phap / d2phap/ImageGlass

Auto-close viewer if all images in folder are deleted

Open
#1,323 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🎯 feature
Dominant language
C#
Stars
14.4k
Forks
752
Avg merge
10d 14h
Merged PRs (30d)
1

Description

When the last image in a folder is deleted, currently a blank page is displayed, while the titlebar displays some incorrect info.

Instead it would be nice if the viewer window was auto-closed when the very last supported image in a folder is deleted. If some people want the viewer to remain open with a blank screen (don't know why), "Auto-close window when last image is deleted" can be made an option.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating the viewer's handling of image deletion and the logic that tracks the last supported image in a folder; confirm how the window lifecycle and titlebar state are updated. Done means deleting the final supported image closes the viewer instead of leaving a blank page with incorrect titlebar information.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.