Skip to content

Commit

Permalink
Insure sketched photos are refreshed
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 1, 2024
1 parent 0649d7f commit d94d435
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qml/editorwidgets/ExternalResource.qml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,10 @@ EditorWidgetBase {
filepath = filepath.replace('{filename}', FileUtils.fileName(path));
filepath = filepath.replace('{extension}', FileUtils.fileSuffix(path));
platformUtilities.renameFile(path, prefixToRelativePath + filepath);

// In order to insure an edited image gets refreshed in the feature form, reset the source
image.source = '';
image.source = UrlUtils.fromString(prefixToRelativePath + filepath);
valueChangeRequested(filepath, false);
enabled = false;
}
Expand Down

0 comments on commit d94d435

Please sign in to comment.