Skip to content

Commit

Permalink
FIXED: Drag-drop of folder or file into Publish Content Folder or Fil…
Browse files Browse the repository at this point in the history
…e or Preview Image textbox does not set the "changed" state of the item field or the item.
  • Loading branch information
ZeqMacaw committed Jan 27, 2020
1 parent 5e4ee55 commit 616b3bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Crowbar/Widgets/- Application/MainForm.vb
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ Public Class MainForm
ElseIf vpkAction = ActionType.Publish Then
Me.MainTabControl.SelectTab(Me.PublishTabPage)
Me.PublishUserControl1.ItemContentPathFileNameTextBox.Text = pathFileName
Me.PublishUserControl1.ItemContentPathFileNameTextBox.DataBindings("Text").WriteValue()
End If
ElseIf extension = ".gma" Then
Dim vpkAction As ActionType = ActionType.Unknown
Expand All @@ -363,6 +364,7 @@ Public Class MainForm
ElseIf vpkAction = ActionType.Publish Then
Me.MainTabControl.SelectTab(Me.PublishTabPage)
Me.PublishUserControl1.ItemContentPathFileNameTextBox.Text = pathFileName
Me.PublishUserControl1.ItemContentPathFileNameTextBox.DataBindings("Text").WriteValue()
End If
ElseIf extension = ".fpx" Then
Dim vpkAction As ActionType = ActionType.Unknown
Expand Down Expand Up @@ -398,6 +400,7 @@ Public Class MainForm
ElseIf extension = ".bmp" OrElse extension = ".gif" OrElse extension = ".jpeg" OrElse extension = ".jpg" OrElse extension = ".png" OrElse extension = ".wmf" Then
Me.MainTabControl.SelectTab(Me.PublishTabPage)
Me.PublishUserControl1.ItemPreviewImagePathFileNameTextBox.Text = pathFileName
Me.PublishUserControl1.ItemPreviewImagePathFileNameTextBox.DataBindings("Text").WriteValue()
Else
Me.SetFolderDrop(setViaAutoOpen, pathFileName)
End If
Expand Down Expand Up @@ -537,6 +540,7 @@ Public Class MainForm
Me.MainTabControl.SelectTab(Me.PackTabPage)
ElseIf folderAction = ActionType.Publish Then
Me.PublishUserControl1.ItemContentPathFileNameTextBox.Text = pathFileName
Me.PublishUserControl1.ItemContentPathFileNameTextBox.DataBindings("Text").WriteValue()
Me.MainTabControl.SelectTab(Me.PublishTabPage)
End If
End Sub
Expand Down

0 comments on commit 616b3bc

Please sign in to comment.