Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
kianzarrin committed Oct 5, 2021
1 parent a819781 commit 289b421
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LoadOrderMod/Settings/Tabs/SubscriptionsTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static class SubscriptionsTab {
}

static bool IsSteamPathValid(string path) {
return Path.GetFileNameWithoutExtension(path).ToLower() != "steam" && File.Exists(path);
return Path.GetFileNameWithoutExtension(path).ToLower() == "steam" && File.Exists(path);
}

static bool CheckSteamPath(string path) {
Expand Down
8 changes: 5 additions & 3 deletions LoadOrderMod/UI/StatusButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ public class StatusButton : UIButton {

protected override void OnClick(UIMouseEventParameter p) {
p.Use();
if (UGCDetails.publishedFileId.AsUInt64 != 0 && UGCDetails.publishedFileId != PublishedFileId.invalid) {
CheckSubsUtil.Instance.Redownload(UGCDetails.publishedFileId);
}
try {
if (UGCDetails.publishedFileId.AsUInt64 != 0 && UGCDetails.publishedFileId != PublishedFileId.invalid) {
CheckSubsUtil.Instance.Redownload(UGCDetails.publishedFileId);
}
} catch(Exception ex) { ex.Log(); }

base.OnClick(p);
}
Expand Down
2 changes: 1 addition & 1 deletion LoadOrderMod/Util/CheckSubsUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public class CheckSubsUtil : MonoBehaviour {
yield return new WaitForSeconds(10);

try {
var method = typeof(Workshop).GetMethod("TriggerWorkshopSubscriptionChanged", throwOnError: true);
var method = typeof(PlatformService).GetMethod("TriggerWorkshopSubscriptionChanged", throwOnError: true);
method.Invoke(null, new object[] { id, false});
method.Invoke(null, new object[] { id, true });
} catch (Exception ex) { ex.Log(); }
Expand Down

0 comments on commit 289b421

Please sign in to comment.