aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-02 08:40:15 -0400
committerMichael <[email protected]>2017-07-02 08:40:15 -0400
commit46e73195afe6e161ddb75b05ec5f6fe64cb093af (patch)
treea788c1dbe47c59d82aa16a06c4d8da46fc6db773
parent01c347c5621a687cfac8889a32e50bd1d16628c8 (diff)
downloadshiftos_thereturn-46e73195afe6e161ddb75b05ec5f6fe64cb093af.tar.gz
shiftos_thereturn-46e73195afe6e161ddb75b05ec5f6fe64cb093af.tar.bz2
shiftos_thereturn-46e73195afe6e161ddb75b05ec5f6fe64cb093af.zip
Fix a kink with Shiftorium population in GUI
-rw-r--r--ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs b/ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs
index ab94d11..9e72045 100644
--- a/ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs
+++ b/ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs
@@ -105,6 +105,11 @@ namespace ShiftOS.WinForms.Applications
{
foreach (var upg in avail.Where(x => x.Category == it.catName))
upl.Add(Localization.Parse(upg.Name) + " - " + upg.Cost.ToString() + "CP", upg);
+ if (it.catId == CategoryId)
+ this.Invoke(new Action(() =>
+ {
+ SetList();
+ }));
numComplete++;
});
t.Start();
@@ -248,7 +253,7 @@ namespace ShiftOS.WinForms.Applications
lbupgrades.SelectionMode = (UpgradeInstalled("shiftorium_gui_bulk_buy") == true) ? SelectionMode.MultiExtended : SelectionMode.One;
lbcodepoints.Visible = Shiftorium.UpgradeInstalled("shiftorium_gui_codepoints_display");
Populate();
- SetList();
+
}
private void moveCat(short direction) // direction is -1 to move backwards or 1 to move forwards