Skip to content

fix #805 edit jpg can not refresh - #806

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

fix #805 edit jpg can not refresh#806
Photon89 merged 2 commits into
shutter-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.

@Photon89Photon89 linked an issue Mar 13, 2026 that may be closed by this pull request
Comment threadbin/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! 😃

@takeseemtakeseemMar 15, 2026

Copy link
Copy Markdown
ContributorAuthor

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 threadbin/shutter Outdated
@Photon89

Copy link
Copy Markdown
Member

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

@Photon89
Photon89 merged commit b445e87 into shutter-project:masterMay 9, 2026
1 check passed
Sign up for freeto 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

@takeseem@Photon89@vadi2@DarthGandalf