mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 18:11:27 -07:00
Add debug logs for message boxes
This commit is contained in:
parent
f751e134eb
commit
facb992bf3
@ -14,6 +14,8 @@ namespace Bloxstrap.UI
|
||||
|
||||
public static MessageBoxResult ShowMessageBox(string message, MessageBoxImage icon = MessageBoxImage.None, MessageBoxButton buttons = MessageBoxButton.OK, MessageBoxResult defaultResult = MessageBoxResult.None)
|
||||
{
|
||||
App.Logger.WriteLine("Frontend::ShowMessageBox", message);
|
||||
|
||||
if (App.LaunchSettings.IsQuiet)
|
||||
return defaultResult;
|
||||
|
||||
@ -31,7 +33,7 @@ namespace Bloxstrap.UI
|
||||
}));
|
||||
|
||||
default:
|
||||
return System.Windows.MessageBox.Show(message, App.ProjectName, buttons, icon);
|
||||
return MessageBox.Show(message, App.ProjectName, buttons, icon);
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,11 +45,11 @@ namespace Bloxstrap.UI
|
||||
});
|
||||
}
|
||||
|
||||
public static void ShowConnectivityDialog(string targetName, string description, Exception exception)
|
||||
public static void ShowConnectivityDialog(string title, string description, Exception exception)
|
||||
{
|
||||
Application.Current.Dispatcher.Invoke(() =>
|
||||
{
|
||||
new ConnectivityDialog(targetName, description, exception).ShowDialog();
|
||||
new ConnectivityDialog(title, description, exception).ShowDialog();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user