File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ MMPrivateComponents.MMBaseInput {
7575 visible: photoStateGroup .state !== " notSet"
7676
7777 photoUrl: root .photoUrl
78- isLocalFile: filePrefixBasedOnSystem ()
78+ isLocalFile: isPhotoUrlPathValid ()
7979 cache: false
8080
8181 fillMode: Image .PreserveAspectCrop
@@ -125,7 +125,7 @@ MMPrivateComponents.MMBaseInput {
125125 iconSource: __style .drawIcon
126126 iconColor: __style .forestColor
127127
128- visible: root .editState === " enabled" && photoStateGroup .state !== " notSet" && __activeProject .photoSketchingEnabled && isFilePrefixValid ()
128+ visible: root .editState === " enabled" && photoStateGroup .state !== " notSet" && __activeProject .photoSketchingEnabled && isPhotoUrlPathValid ()
129129
130130 onClicked: {
131131 sketchingLoader .active = true
@@ -186,14 +186,8 @@ MMPrivateComponents.MMBaseInput {
186186 }
187187 }
188188
189- function filePrefixBasedOnSystem (){
189+ function isPhotoUrlPathValid (){
190190 let filePrefix = Qt .platform .os === " windows" ? " file:///" : " file://"
191191 return root .photoUrl .startsWith ( filePrefix )
192192 }
193-
194- function isFilePrefixValid ()
195- {
196- let filePrefix = Qt .platform .os === " windows" ? " file:///" : " file://"
197- return root .photoUrl .startsWith (filePrefix)
198- }
199193}
You can’t perform that action at this time.
0 commit comments