From fee0928ec1daef11d71f077e83097fca64b213be Mon Sep 17 00:00:00 2001 From: ZeqMacaw Date: Wed, 3 Aug 2022 14:27:54 -0400 Subject: [PATCH] UPDATED: Change "Publish" button to "Update" when editing an existing workshop item. --- Crowbar/Widgets/Main Tabs/PublishUserControl.vb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Crowbar/Widgets/Main Tabs/PublishUserControl.vb b/Crowbar/Widgets/Main Tabs/PublishUserControl.vb index 16014e6..eea2a63 100644 --- a/Crowbar/Widgets/Main Tabs/PublishUserControl.vb +++ b/Crowbar/Widgets/Main Tabs/PublishUserControl.vb @@ -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()