aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-28 20:01:04 -0400
committerMichael <[email protected]>2017-04-28 20:01:04 -0400
commit712d38a2be53b415c2635b86e1f539faec0ace19 (patch)
treef600fea9f8f98a715216a98100f047846b693faa /ShiftOS_TheReturn
parente1b3ecc57d42a961c780114e4e582a875e8f3b96 (diff)
downloadshiftos_thereturn-712d38a2be53b415c2635b86e1f539faec0ace19.tar.gz
shiftos_thereturn-712d38a2be53b415c2635b86e1f539faec0ace19.tar.bz2
shiftos_thereturn-712d38a2be53b415c2635b86e1f539faec0ace19.zip
Final Beta 2.3 adjustments.
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/Commands.cs5
-rw-r--r--ShiftOS_TheReturn/Infobox.cs6
2 files changed, 7 insertions, 4 deletions
diff --git a/ShiftOS_TheReturn/Commands.cs b/ShiftOS_TheReturn/Commands.cs
index ce94030..7980635 100644
--- a/ShiftOS_TheReturn/Commands.cs
+++ b/ShiftOS_TheReturn/Commands.cs
@@ -247,7 +247,10 @@ namespace ShiftOS.Engine
{
try
{
- SaveSystem.CurrentSave.Upgrades[args["upgrade"] as string] = false;
+ SaveSystem.CurrentSave.Upgrades[args["upgrade"].ToString()] = false;
+ SaveSystem.SaveGame();
+ Desktop.PopulateAppLauncher();
+ Desktop.CurrentDesktop.SetupDesktop();
}
catch
{
diff --git a/ShiftOS_TheReturn/Infobox.cs b/ShiftOS_TheReturn/Infobox.cs
index 5900bc4..62abcb7 100644
--- a/ShiftOS_TheReturn/Infobox.cs
+++ b/ShiftOS_TheReturn/Infobox.cs
@@ -65,13 +65,13 @@ namespace ShiftOS.Engine
});
}
- public static void PromptText(string title, string message, Action<string> callback)
+ public static void PromptText(string title, string message, Action<string> callback, bool isPassword = false)
{
title = Localization.Parse(title);
message = Localization.Parse(message);
Desktop.InvokeOnWorkerThread(() =>
{
- _infobox.PromptText(title, message, callback);
+ _infobox.PromptText(title, message, callback, isPassword);
});
}
@@ -99,7 +99,7 @@ namespace ShiftOS.Engine
public interface IInfobox
{
void Open(string title, string msg, Action callback = null);
- void PromptText(string title, string message, Action<string> callback);
+ void PromptText(string title, string message, Action<string> callback, bool isPassword);
void PromptYesNo(string title, string message, Action<bool> callback);
}
}