diff --git a/Project/Sources/Classes/SystemWorkerProperties.4dm b/Project/Sources/Classes/SystemWorkerProperties.4dm index 4ca8c3d..114f923 100644 --- a/Project/Sources/Classes/SystemWorkerProperties.4dm +++ b/Project/Sources/Classes/SystemWorkerProperties.4dm @@ -22,7 +22,11 @@ Function onData($systemworker : Object; $data : Object) // not needed for Curl // in Gdrive or Dropbox used when asking for Authentication This:C1470.data.text+=$data.data - If ((This:C1470.type="gdrive") | (This:C1470.type="dropbox")) + If ((This:C1470.type="gdrive") && (This:C1470.data.text="@Authentication@")) + $systemworker.terminate() + End if + + If ((This:C1470.type="dropbox") && (This:C1470.data.text="@authorization@")) $systemworker.terminate() End if @@ -76,4 +80,4 @@ Function onTerminate($systemworker : Object; $data : Object) Function _createFile($title : Text; $textBody : Text) // debug only - TEXT TO DOCUMENT:C1237(Get 4D folder:C485(Current resources folder:K5:16)+$title+".txt"; $textBody) \ No newline at end of file + TEXT TO DOCUMENT:C1237(Get 4D folder:C485(Current resources folder:K5:16)+$title+".txt"; $textBody)