diff --git a/SmokeyVersionSwitcher/Downloader.cs b/SmokeyVersionSwitcher/Downloader.cs index f079a88..c39b932 100644 --- a/SmokeyVersionSwitcher/Downloader.cs +++ b/SmokeyVersionSwitcher/Downloader.cs @@ -93,13 +93,7 @@ public void EnableUserAuthorization() public async Task Download(string updateIdentity, string revisionNumber, string destination, DownloadProgress progress, CancellationToken cancellationToken) { - string link = await GetDownloadUrl(updateIdentity, revisionNumber); - - if (link == null) - { - throw new BadUpdateIdentityException(); - } - + string link = await GetDownloadUrl(updateIdentity, revisionNumber) ?? throw new BadUpdateIdentityException(); Debug.WriteLine("Resolved download link: " + link); await DownloadFile(link, destination, progress, cancellationToken); } diff --git a/SmokeyVersionSwitcher/MainWindow.xaml b/SmokeyVersionSwitcher/MainWindow.xaml index 5cf8ba7..16ec29f 100644 --- a/SmokeyVersionSwitcher/MainWindow.xaml +++ b/SmokeyVersionSwitcher/MainWindow.xaml @@ -7,6 +7,10 @@ mc:Ignorable="d" Title="SmokeyStack's Version Switcher" Height="800" Width="800"> + + + + @@ -102,7 +106,7 @@ - + @@ -111,7 +115,7 @@ - + @@ -125,12 +129,18 @@ -