diff options
| author | Michael <[email protected]> | 2017-04-26 19:03:02 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-26 19:03:02 -0400 |
| commit | 284216ac4c991481da4cac38a476b16c45712317 (patch) | |
| tree | 1b07fc47b1a457b5740abaa3921ed72558e5bda7 /ShiftOS_TheReturn | |
| parent | 894320db54760bc697f027809c59450987fd38d5 (diff) | |
| download | shiftos_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.cs | 17 |
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> |
