private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { UpdatePromptBox.StopCheckVersion(); DownloadQueuePanel.StopAll(); SettingPanel.Settings settings = ConfigManager.ConfigManager.GetSettings(); if (settings.MovedTempPath != null && settings.MovedTempPath != settings.TempPath) { CopyDirectory(settings.TempPath, settings.MovedTempPath); settings.TempPath = settings.MovedTempPath; settings.MovedTempPath = null; ConfigManager.ConfigManager.SetSettings(settings); } }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { DownloadFinishedNotification.DisposeNotifyIcon(); NotificationManager.Close(); UpdateUtil.StopCheckVersion(); DownloadManager.StopAll(); SettingPanel.Settings settings = ConfigUtil.ConfigManager.GetSettings(); if (settings.MovedTempPath != null && settings.MovedTempPath != settings.TempPath) { CopyDirectory(settings.TempPath, settings.MovedTempPath); settings.TempPath = settings.MovedTempPath; settings.MovedTempPath = null; ConfigUtil.ConfigManager.SetSettings(settings); } }