Apply suggestions from code review
Co-authored-by: RichΛrd <info@richardramos.me>
This commit is contained in:
parent
eebd831c5d
commit
d5f3cf71a2
|
@ -1,8 +1,7 @@
|
|||
import strutils, os
|
||||
|
||||
proc formatImagePath*(imagePath: string): string =
|
||||
var image: string = replace(imagePath, "file://", "")
|
||||
result = replace(imagePath, "file://", "")
|
||||
if defined(windows):
|
||||
# Windows doesn't work with paths starting with a slash
|
||||
image.removePrefix('/')
|
||||
return image
|
||||
result.removePrefix('/')
|
||||
|
|
|
@ -57,7 +57,7 @@ ModalPopup {
|
|||
id: cropImageModal
|
||||
width: image.width + 50
|
||||
height: image.height + 170
|
||||
title: qsTr("Crop your image (optionnal)")
|
||||
title: qsTr("Crop your image (optional)")
|
||||
|
||||
Image {
|
||||
id: image
|
||||
|
|
Loading…
Reference in New Issue