Commit 54ddc4a 1 parent e64dca3 commit 54ddc4a Copy full SHA for 54ddc4a
File tree 4 files changed +30
-2
lines changed
4 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -598,7 +598,9 @@ Public Class SteamPipe
598
598
outputInfo.Status = result
599
599
outputInfo.UploadedByteCount = CULng( Me .theStreamReader.ReadLine())
600
600
outputInfo.TotalUploadedByteCount = CULng( Me .theStreamReader.ReadLine())
601
- If outputInfo.Status <> "invalid" Then
601
+ If outputInfo.Status = "invalid" Then
602
+ Dim debug As Integer = 4242
603
+ Else
602
604
If previousOutputInfo.Status <> outputInfo.Status OrElse previousOutputInfo.UploadedByteCount <> outputInfo.UploadedByteCount OrElse previousOutputInfo.TotalUploadedByteCount <> outputInfo.TotalUploadedByteCount Then
603
605
If outputInfo.TotalUploadedByteCount > 0 Then
604
606
Me .theBackgroundWorker.ReportProgress( 2 , outputInfo)
Original file line number Diff line number Diff line change @@ -521,6 +521,31 @@ Public Class WorkshopItem
521
521
522
522
# Region "Methods"
523
523
524
+ Public Sub SetAllChangedForNonEmptyFields()
525
+ If Me .theTitle <> "" Then
526
+ Me .theTitleIsChanged = True
527
+ End If
528
+ If Me .theDescription <> "" Then
529
+ Me .theDescriptionIsChanged = True
530
+ End If
531
+ If Me .theChangeNote <> "" Then
532
+ Me .theChangeNoteIsChanged = True
533
+ End If
534
+ If Me .theContentPathFolderOrFileName <> "" Then
535
+ Me .theContentPathFolderOrFileNameIsChanged = True
536
+ End If
537
+ If Me .thePreviewImagePathFileName <> "" Then
538
+ Me .thePreviewImagePathFileNameIsChanged = True
539
+ End If
540
+
541
+ 'NOTE: Always set IsChanged for Visibility and Tags.
542
+ Me .theVisibilityIsChanged = True
543
+ Me .theTagsIsChanged = True
544
+
545
+ 'NOTE: Always set IsChanged for item.
546
+ Me .theItemIsChanged = True
547
+ End Sub
548
+
524
549
# End Region
525
550
526
551
# Region "Event Handlers"
Original file line number Diff line number Diff line change @@ -1014,6 +1014,7 @@ Public Class PublishUserControl
1014
1014
draftItem = New WorkshopItem()
1015
1015
Else
1016
1016
draftItem = CType (itemToCopy.Clone(), WorkshopItem)
1017
+ draftItem.SetAllChangedForNonEmptyFields()
1017
1018
End If
1018
1019
Me .theDisplayedItems.Add(draftItem)
1019
1020
Me .theEntireListOfItems.Add(draftItem)
Original file line number Diff line number Diff line change @@ -1473,6 +1473,7 @@ Public Module CrowbarSteamPipe
1473
1473
End Sub
1474
1474
1475
1475
Private Sub OnSubmitItemUpdate( ByVal pCallResult As SubmitItemUpdateResult_t, ByVal bIOFailure As Boolean )
1476
+ theItemIsUploading = False
1476
1477
sw.WriteLine( "OnSubmitItemUpdate" )
1477
1478
Try
1478
1479
If pCallResult.m_eResult = EResult.k_EResultOK Then
@@ -1568,7 +1569,6 @@ Public Module CrowbarSteamPipe
1568
1569
End If
1569
1570
SteamAPI.RunCallbacks()
1570
1571
End While
1571
- theItemIsUploading = False
1572
1572
End Sub
1573
1573
1574
1574
'NOTE: WriteLine only writes string until first LF or CR, so need to adjust how to send this.
You can’t perform that action at this time.
0 commit comments