From 4a1450a5035cac6fb35bd8a259cfa3699b62a78f Mon Sep 17 00:00:00 2001 From: Thom McGrath Date: Tue, 23 Apr 2024 13:19:05 -0400 Subject: [PATCH] Fixed "export to community" option --- .../Blueprints/LocalModsListView.xojo_window | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Project/Views/Main Window Components/Blueprints/LocalModsListView.xojo_window b/Project/Views/Main Window Components/Blueprints/LocalModsListView.xojo_window index 2dfb6fc1e..e2c9b6651 100644 --- a/Project/Views/Main Window Components/Blueprints/LocalModsListView.xojo_window +++ b/Project/Views/Main Window Components/Blueprints/LocalModsListView.xojo_window @@ -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 @@ -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)