Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix window closing when clicking on Next/Former #6920

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lq12123
Copy link

@lq12123 lq12123 commented Dec 5, 2023

Fix window closing when clicking on Next/Former if no other file is selected.

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practices as demonstrated in the repository.

Description

If the application hasn't selected the next file, it closes. This behavior occurs when you click on File->Next and File->Former. This pull request corrects this behavior: if the next file is not selected, then nothing happens.

Fix window closing when clicking on Next/Former if no other file is
selected.
@urban-warrior
Copy link
Member

urban-warrior commented Dec 5, 2023

The display utility respects the image delay and loop metadata. Try display -delay 0 myImage.gif. Or display -delay 0 -loop 1 myImage.gif. Does that not fix the issue?

@lq12123
Copy link
Author

lq12123 commented Dec 5, 2023

When I clicked on File->Former the behavior of the program became what I wanted, but when I clicked on File->Next it remained the same.

@urban-warrior
Copy link
Member

Try -loop 100 instead of -loop 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants