Skip to content

Commit

Permalink
function to end of file
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Apr 17, 2024
1 parent 369c096 commit 792bd6f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/qml/components/MMCodeScanner.qml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ Popup {

signal scanFinished( var data )

function unload() {
qrcodeScanner.videoSink = null
camera.active = false
captureSession.videoOutput = null
captureSession.camera = null
}

CaptureSession {
id: captureSession

Expand Down Expand Up @@ -106,4 +99,11 @@ Popup {
}
}
}

function unload() {
qrcodeScanner.videoSink = null
camera.active = false
captureSession.videoOutput = null
captureSession.camera = null
}
}

0 comments on commit 792bd6f

Please sign in to comment.