diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-09-11 18:03:35 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-09-11 18:03:35 +0200 |
| commit | dc8d870b76c445b6ef979ff58c2260e88793d167 (patch) | |
| tree | ab0b76d5fbf180a1afc3bdf62c1b74a129496688 /src/GraphicObjects/MessageBox.cs | |
| parent | 7f10fe9ea2a4538843401c54d4518376a69b242d (diff) | |
revert 65cf1452510c336fcd69f9922774389d6c3b1aee, to allow widget creation from code
Diffstat (limited to 'src/GraphicObjects/MessageBox.cs')
| -rw-r--r-- | src/GraphicObjects/MessageBox.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GraphicObjects/MessageBox.cs b/src/GraphicObjects/MessageBox.cs index 8c8380ef..d8ce1dae 100644 --- a/src/GraphicObjects/MessageBox.cs +++ b/src/GraphicObjects/MessageBox.cs @@ -134,8 +134,8 @@ namespace Crow public static MessageBox Show (Type msgBoxType, string message, string okMsg = "", string cancelMsg = ""){ lock (Interface.CurrentInterface.UpdateMutex) { MessageBox mb = new MessageBox (); - mb.loadDefaultValues (); - mb.currentInterface.AddWidget (mb); + mb.Initialize (); + mb.CurrentInterface.AddWidget (mb); mb.MsgType = msgBoxType; mb.Message = message; if (!string.IsNullOrEmpty(okMsg)) |