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:
parent
4c45d91d4e
commit
8abf4364c6
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user