private void SetupDownloadUI(BeatSaberResultControl song)
        {
            if (Directory.Exists(GetSongPath(song)))
            {
                btnDownload.Visibility    = Visibility.Collapsed;
                pbDownload.Visibility     = Visibility.Collapsed;
                tblkDownloaded.Visibility = Visibility.Visible;
            }
            else
            {
                btnDownload.Visibility    = Visibility.Visible;
                pbDownload.Visibility     = Visibility.Collapsed;
                tblkDownloaded.Visibility = Visibility.Collapsed;
            }

            if (cbResults.SelectedItem != null)
            {
                btnDownload.IsEnabled = true;
            }
            else
            {
                btnDownload.IsEnabled = false;
            }
        }
 /// <summary>
 /// Returns a path to a .zip for the downloaded song.
 /// </summary>
 /// <param name="result"></param>
 private string GetTempDownloadPath(BeatSaberResultControl result)
 {
     return(Path.Combine(Path.GetTempPath(), $"{result.Hash}.zip"));
 }
 private string GetSongPath(BeatSaberResultControl song)
 {
     return(System.IO.Path.Combine(MainWindow.CustomSongDirectory, $"{song.JsonObject.hash}"));
 }