aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-26 19:03:02 -0400
committerMichael <[email protected]>2017-04-26 19:03:02 -0400
commit284216ac4c991481da4cac38a476b16c45712317 (patch)
tree1b07fc47b1a457b5740abaa3921ed72558e5bda7 /ShiftOS_TheReturn
parent894320db54760bc697f027809c59450987fd38d5 (diff)
downloadshiftos_thereturn-284216ac4c991481da4cac38a476b16c45712317.tar.gz
shiftos_thereturn-284216ac4c991481da4cac38a476b16c45712317.tar.bz2
shiftos_thereturn-284216ac4c991481da4cac38a476b16c45712317.zip
SuperDesk now has a shiftnet site.
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/Infobox.cs17
1 files changed, 13 insertions, 4 deletions
diff --git a/ShiftOS_TheReturn/Infobox.cs b/ShiftOS_TheReturn/Infobox.cs
index e3308dc..5900bc4 100644
--- a/ShiftOS_TheReturn/Infobox.cs
+++ b/ShiftOS_TheReturn/Infobox.cs
@@ -59,21 +59,30 @@ namespace ShiftOS.Engine
{
title = Localization.Parse(title);
message = Localization.Parse(message);
- _infobox.Open(title, message, callback);
+ Desktop.InvokeOnWorkerThread(() =>
+ {
+ _infobox.Open(title, message, callback);
+ });
}
-
+
public static void PromptText(string title, string message, Action<string> callback)
{
title = Localization.Parse(title);
message = Localization.Parse(message);
- _infobox.PromptText(title, message, callback);
+ Desktop.InvokeOnWorkerThread(() =>
+ {
+ _infobox.PromptText(title, message, callback);
+ });
}
public static void PromptYesNo(string title, string message, Action<bool> callback)
{
title = Localization.Parse(title);
message = Localization.Parse(message);
- _infobox.PromptYesNo(title, message, callback);
+ Desktop.InvokeOnWorkerThread(() =>
+ {
+ _infobox.PromptYesNo(title, message, callback);
+ });
}
/// <summary>