Build 0.18.7.0
This commit is contained in:
@@ -562,10 +562,10 @@ namespace Barotrauma.Steam
|
||||
= (parentList == enabledRegularModsList, parentList.AllSelected.Count > 1);
|
||||
Identifier swapLabel = (labelConditions switch
|
||||
{
|
||||
(true, true) => "EnableSelectedWorkshopMods",
|
||||
(true, false) => "EnableWorkshopMod",
|
||||
(false, true) => "DisableSelectedWorkshopMods",
|
||||
(false, false) => "DisableWorkshopMod"
|
||||
(false, true) => "EnableSelectedWorkshopMods",
|
||||
(false, false) => "EnableWorkshopMod",
|
||||
(true, true) => "DisableSelectedWorkshopMods",
|
||||
(true, false) => "DisableWorkshopMod"
|
||||
}).ToIdentifier();
|
||||
|
||||
contextMenuOptions.Add(new ContextMenuOption(swapLabel,
|
||||
|
||||
@@ -595,6 +595,12 @@ namespace Barotrauma.Steam
|
||||
{
|
||||
ContentPackageManager.WorkshopPackages.Refresh();
|
||||
ContentPackageManager.EnabledPackages.RefreshUpdatedMods();
|
||||
var package = ContentPackageManager.WorkshopPackages.FirstOrDefault(p => p.SteamWorkshopId == workshopItem.Id);
|
||||
if (package is RegularPackage regular)
|
||||
{
|
||||
ContentPackageManager.EnabledPackages.EnableRegular(regular);
|
||||
}
|
||||
PopulateInstalledModLists(forceRefreshEnabled: true);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user