Code Cleanup

This commit is contained in:
ema
2025-05-23 02:39:26 +08:00
parent 34f69cc4f4
commit 06e7dbaae7
10 changed files with 89 additions and 123 deletions

View File

@@ -53,7 +53,7 @@ internal class Updater
{
if (!silent)
Application.Current.Dispatcher.Invoke(
() => TrayIconManager.ShowNotification("",
() => TrayIconManager.ShowNotification(string.Empty,
TranslationHelper.Get("Update_NoUpdate")));
return;
}
@@ -63,7 +63,7 @@ internal class Updater
Application.Current.Dispatcher.Invoke(
() =>
{
TrayIconManager.ShowNotification("",
TrayIconManager.ShowNotification(string.Empty,
string.Format(TranslationHelper.Get("Update_Found"), nVersion),
timeout: 20000,
clickEvent:
@@ -74,7 +74,7 @@ internal class Updater
{
Debug.WriteLine(e.Message);
Application.Current.Dispatcher.Invoke(
() => TrayIconManager.ShowNotification("",
() => TrayIconManager.ShowNotification(string.Empty,
string.Format(TranslationHelper.Get("Update_Error"), e.Message)));
}
});
@@ -110,7 +110,7 @@ internal class Updater
{
Debug.WriteLine(e.Message);
Application.Current.Dispatcher.Invoke(
() => TrayIconManager.ShowNotification("",
() => TrayIconManager.ShowNotification(string.Empty,
string.Format(TranslationHelper.Get("Update_Error"), e.Message)));
}
});