aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/ShiftnetSites
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-06-22 20:52:01 -0400
committerMichael <[email protected]>2017-06-22 20:52:01 -0400
commit42a7829864cd6cf2dff2a21f9dbed208b154c6f7 (patch)
tree15a160046e2531014a9366246787d4c49c5897de /ShiftOS.WinForms/ShiftnetSites
parentbb38dad59be6583e4c0a2fe851f264ed8d1fec2e (diff)
downloadshiftos_thereturn-42a7829864cd6cf2dff2a21f9dbed208b154c6f7.tar.gz
shiftos_thereturn-42a7829864cd6cf2dff2a21f9dbed208b154c6f7.tar.bz2
shiftos_thereturn-42a7829864cd6cf2dff2a21f9dbed208b154c6f7.zip
Fix some major Appscape bugs.
Diffstat (limited to 'ShiftOS.WinForms/ShiftnetSites')
-rw-r--r--ShiftOS.WinForms/ShiftnetSites/AppscapeMain.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/ShiftOS.WinForms/ShiftnetSites/AppscapeMain.cs b/ShiftOS.WinForms/ShiftnetSites/AppscapeMain.cs
index c9b6f64..d14f1fa 100644
--- a/ShiftOS.WinForms/ShiftnetSites/AppscapeMain.cs
+++ b/ShiftOS.WinForms/ShiftnetSites/AppscapeMain.cs
@@ -48,8 +48,8 @@ namespace ShiftOS.WinForms.ShiftnetSites
if (upgrades.Count() > 0)
foreach (var upg in upgrades)
{
- if (!cats.Contains(upg.Category))
- cats.Add(upg.Category);
+ if (!cats.Contains(Localization.Parse(upg.Category)))
+ cats.Add(Localization.Parse(upg.Category));
}
}
catch { }
@@ -63,9 +63,9 @@ namespace ShiftOS.WinForms.ShiftnetSites
pnlappslist.Controls.Clear();
pnlappslist.Show();
pnlappslist.BringToFront();
- Category = cat;
+ Category = Localization.Parse(cat);
var upgrades = GetAllInCategory();
- lbtitle.Text = cat;
+ lbtitle.Text = Localization.Parse(cat);
if(upgrades.Length == 0)
{
var err = new Label();
@@ -282,7 +282,7 @@ namespace ShiftOS.WinForms.ShiftnetSites
if (Category == "All")
return upgrades.ToArray();
else
- return upgrades.Where(x => x.Category == Category).ToArray();
+ return upgrades.Where(x => Localization.Parse(x.Category) == Localization.Parse(Category)).ToArray();
}
public void Setup()
@@ -360,7 +360,7 @@ namespace ShiftOS.WinForms
/// </summary>
public class AppscapeEntryAttribute : RequiresUpgradeAttribute
{
- public AppscapeEntryAttribute(string name, string description, int downloadSize, ulong cost, string dependencies = "", string category = "Misc") : base(name.ToLower().Replace(' ', '_'))
+ public AppscapeEntryAttribute(string id, string name, string description, int downloadSize, ulong cost, string dependencies = "", string category = "Misc") : base(id)
{
Name = name;
Description = description;