1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-09 14:34:05 +02:00

Replace calls to Program.Log

This commit is contained in:
chylex 2016-09-20 16:39:31 +02:00
parent 4c45d91d4e
commit 8abf4364c6
3 changed files with 2 additions and 6 deletions

View File

@ -90,7 +90,7 @@ public bool Unlock(){
try{
File.Delete(file);
}catch(Exception e){
Program.Log(e.ToString());
Program.Reporter.Log(e.ToString());
result = false;
}

View File

@ -184,10 +184,6 @@ public static void HandleException(string message, Exception e){ // TODO replace
Reporter.HandleException(BrandName+" Has Failed :(", message, false, new Exception());
}
public static void Log(string message){ // TODO replace all uses
Reporter.Log(message);
}
public static void ReloadConfig(){
UserConfig = UserConfig.Load(ConfigFilePath);
}

View File

@ -90,7 +90,7 @@ private void webClient_DownloadFileCompleted(object sender, AsyncCompletedEventA
}
}
else if (e.Error != null){
Program.Log(e.Error.ToString());
Program.Reporter.Log(e.Error.ToString());
if (MessageBox.Show("Could not download the update: "+e.Error.Message+"\r\n\r\nDo you want to open the website and try downloading the update manually?", "Update Has Failed", MessageBoxButtons.YesNo, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1) == DialogResult.Yes){
BrowserUtils.OpenExternalBrowser(Program.Website);