Skip to content

Commit dba5411

Browse files
committed
Minor improvements
1 parent fb03b17 commit dba5411

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/qml/form/editors/MMFormPhotoEditor.qml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ MMFormPhotoViewer {
265265
return
266266
}
267267

268-
let absolutePath = __inputUtils.getAbsolutePath( root._fieldValue, internal.prefixToRelativePath )
268+
const absolutePath = __inputUtils.getAbsolutePath( root._fieldValue, internal.prefixToRelativePath )
269269

270270
if ( __inputUtils.fileExists( absolutePath ) ) {
271271
root.photoState = "valid"
@@ -362,11 +362,11 @@ MMFormPhotoViewer {
362362
const filename = __inputUtils.getFileName( imgPath )
363363

364364
//! final absolute location of an image.
365-
let absolutePath = __inputUtils.getAbsolutePath( filename, targetDir )
365+
const absolutePath = __inputUtils.getAbsolutePath( filename, targetDir )
366366

367367
if ( !__inputUtils.fileExists( absolutePath ) ) { // we need to copy it!
368368

369-
let success = __inputUtils.copyFile( imgPath, absolutePath )
369+
const success = __inputUtils.copyFile( imgPath, absolutePath )
370370

371371
if ( !success ) {
372372
__inputUtils.log( "Select image", "Failed to copy image file to " + absolutePath )
@@ -386,7 +386,7 @@ MMFormPhotoViewer {
386386
function imageCaptured( imgPath ) {
387387
if ( imgPath ) {
388388

389-
let prefixPath = prefixToRelativePath.endsWith("/") ? prefixToRelativePath : prefixToRelativePath + "/"
389+
const prefixPath = prefixToRelativePath.endsWith("/") ? prefixToRelativePath : prefixToRelativePath + "/"
390390

391391
confirmImage( prefixPath, imgPath )
392392
}
@@ -403,7 +403,7 @@ MMFormPhotoViewer {
403403
function confirmImage( prefixToRelativePath, imgPath ) {
404404
if ( imgPath ) {
405405
__inputUtils.rescaleImage( imgPath, __activeProject.qgsProject )
406-
let newImgPath = __inputUtils.getRelativePath( imgPath, prefixToRelativePath )
406+
const newImgPath = __inputUtils.getRelativePath( imgPath, prefixToRelativePath )
407407

408408
root.editorValueChanged( newImgPath, newImgPath === "" || newImgPath === null )
409409
if ( photoSketchingLoader.active ) {

0 commit comments

Comments
 (0)