1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-08-10 21:40:35 +02:00

Add extra new lines to plugin load/execution error messages

This commit is contained in:
chylex 2017-03-23 15:46:49 +01:00
parent 5ec1bcfe3f
commit 8e527fbbdf

View File

@ -180,7 +180,8 @@ private static void Main(){
private static void plugins_Reloaded(object sender, PluginErrorEventArgs e){
if (!e.Success){
MessageBox.Show("The following plugins will not be available until the issues are resolved:"+Environment.NewLine+string.Join(Environment.NewLine, e.Errors), "Error Loading Plugins", MessageBoxButtons.OK, MessageBoxIcon.Error);
string doubleNL = Environment.NewLine+Environment.NewLine;
MessageBox.Show("The following plugins will not be available until the issues are resolved:"+doubleNL+string.Join(doubleNL, e.Errors), "Error Loading Plugins", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
((PluginManager)sender).SetConfig(UserConfig.Plugins);
@ -188,7 +189,8 @@ private static void plugins_Reloaded(object sender, PluginErrorEventArgs e){
private static void plugins_Executed(object sender, PluginErrorEventArgs e){
if (!e.Success){
MessageBox.Show("Failed to execute the following plugins:"+Environment.NewLine+string.Join(Environment.NewLine, e.Errors), "Error Executing Plugins", MessageBoxButtons.OK, MessageBoxIcon.Error);
string doubleNL = Environment.NewLine+Environment.NewLine;
MessageBox.Show("Failed to execute the following plugins:"+doubleNL+string.Join(doubleNL, e.Errors), "Error Executing Plugins", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}