diff options
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> |
