-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved stopping/renaming/deleting GIFs/images
Support for renaming GIFs has been added, which like normal renaming, will stop, rename, and resume a GIF in place. This was somewhat tricky to figure out without the underlying QMovie freezing, but part of the solution involved added a new signal, `force_pause_signal`, for force- resuming actively running GIFs without freezing. Additionally, stopping and resuming stopped GIFs has been improved. Stopping GIFs now only changes the QMovie's filename without calling .stop(), as .stop() causes more problems than it fixes. When stopping, the original filename is saved to `QVideoPlayerLabel.filename` and reused when pause() is called and it's detected that the QMovie's filename and the expected filename don't match. The GIF is then resumed from the progress bar's current value. Deleting GIFs and images already worked, but this functionality has been extended to GIFs you're currently watching. For static images, a setting called `checkRenameMissingImages` has been added which determines whether or not renaming an image file which no longer exists will do nothing or will save the cached version to the desired path. Also, QVideoPlayerLabel.play() now accepts an `autostart` parameter for GIFs (currently unused), and docstrings have been added/improved for rename() and get_renamed_output().
- Loading branch information
1 parent
268e98e
commit 23acbcf
Showing
5 changed files
with
105 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.