Skip to content

Commit

Permalink
Fixed "export to community" option
Browse files Browse the repository at this point in the history
  • Loading branch information
thommcgrath committed Apr 23, 2024
1 parent 50fa6be commit 4a1450a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,13 @@ End
BeaconAPI.Send(Request)
Next

If Self.mRemainingUploads <= 0 Then
Self.mUploadProgress.Close
Self.mUploadProgress = Nil
Self.ShowAlert("Nothing to upload", "The mod(s) could not be exported. Usually this happens whent he mod is empty.")
Return
End If

Self.mUploadProgress.Detail = Language.NounWithQuantity(Self.mRemainingUploads, "mod", "mods") + " remaining"
Self.mUploadProgress.Show(Self)
End Sub
Expand Down Expand Up @@ -928,7 +935,7 @@ End

Var ExportFileItem As New DesktopMenuItem("Export To File")
Var ExportCommunityItem As New DesktopMenuItem("Export To Community")
ExportCommunityItem.Enabled = Self.ModsList.SelectedRowCount = 0
ExportCommunityItem.Enabled = Self.ModsList.SelectedRowCount <> 0

Var ExportMenu As New DesktopMenuItem
ExportMenu.AddMenu(ExportFileItem)
Expand Down

0 comments on commit 4a1450a

Please sign in to comment.