Skip to content

Commit

Permalink
UPDATED: Change "Publish" button to "Update" when editing an existing…
Browse files Browse the repository at this point in the history
… workshop item.
  • Loading branch information
ZeqMacaw committed Aug 3, 2022
1 parent 562bda7 commit fee0928
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Crowbar/Widgets/Main Tabs/PublishUserControl.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1501,6 +1501,11 @@ Public Class PublishUserControl

'NOTE: SteamRemoteStorage_PublishWorkshopFile requires Item to have a Title, a Description, a Content File, and a Preview Image.
Me.PublishItemButton.Enabled = (((Me.theSelectedItem.IsDraft) AndAlso (Me.theSelectedItem.Title <> "" AndAlso Me.theSelectedItem.Description <> "" AndAlso Me.theSelectedItem.ContentPathFolderOrFileName <> "" AndAlso Me.theSelectedItem.PreviewImagePathFileName <> "")) OrElse (Me.theSelectedItem.IsChanged AndAlso (Me.theUserSteamID = Me.theSelectedItem.OwnerID)) OrElse (Me.theSelectedItem.IsTemplate))
If Me.theSelectedItem.IsPublished Then
Me.PublishItemButton.Text = "Update"
Else
Me.PublishItemButton.Text = "Publish"
End If
End Sub

Private Sub SwapBetweenOwnerNameAndID()
Expand Down

0 comments on commit fee0928

Please sign in to comment.