Fixed a bug where the tray icon was incorrect when restarting the application and the target was reached