Skip to content

Commit

Permalink
Fix connection to avoid loss of sketches
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Mar 28, 2024
1 parent f596ce6 commit 94c16c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qml/editorwidgets/+Qt5/ExternalResource.qml
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,16 @@ EditorWidgetBase {
bgcolor: Theme.darkGraySemiOpaque

onClicked: {
sketcherConnection.enabled = true
sketcher.loadImage(image.source)
sketcher.open()
}
}

Connections {
id: sketcherConnection
target: sketcher
enabled: true
enabled: false

function onFinished(path) {
var filepath = getResourceFilePath()
Expand Down

0 comments on commit 94c16c9

Please sign in to comment.