Skip to content

fix #805 edit jpg can not refresh#806

Merged
Photon89 merged 2 commits intoshutter-project:masterfrom
takeseem:fix-805
May 9, 2026
Merged

fix #805 edit jpg can not refresh#806
Photon89 merged 2 commits intoshutter-project:masterfrom
takeseem:fix-805

Conversation

@takeseem
Copy link
Copy Markdown
Contributor

No description provided.

@Photon89
Copy link
Copy Markdown
Member

Thanks for the PR! I tested it and can confirm that it fixes the issue.

@Photon89 Photon89 requested a review from DarthGandalf March 13, 2026 19:59
@Photon89 Photon89 linked an issue Mar 13, 2026 that may be closed by this pull request
Comment thread bin/shutter Outdated

my $v = $session_screens{$key};
if ($v && -e $v->{'giofile'}->get_path) {
print "deleted - $key exists ignored\n" if $sc->get_debug;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what this sentence means

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me neither, it does some magic! 😃

Copy link
Copy Markdown
Contributor Author

@takeseem takeseem Mar 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because save do $exiftool->WriteInfo($filename); in os is mv

  1. create a tmp file
  2. mv tmp $filename
    os will notify event: deleted, in fact the $filename is not deleted, it still exist in os, just innode changed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After asking the AI, I think this makes sense. The return line seems to prevent that the file is considered as deleted and thus not updated any more.

Comment thread bin/shutter Outdated
@Photon89
Copy link
Copy Markdown
Member

Photon89 commented May 9, 2026

I probably shouldn't have commented in a resolved conversation. Is this PR good to go?

@Photon89 Photon89 merged commit b445e87 into shutter-project:master May 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

edit and save, image view can't refresh

4 participants