fix(app): resumable, cancellable update download; portable copies get the portable zip
- UpdateFlow owns the update notice (check, download, cancel) as a plain class; AboutViewModel only maps it to text and commands. - A portable copy downloads and verifies Titano-win-x64-portable-<v>.zip instead of the setup; a release without the package or SHA256SUMS opens its page. - The download fails after 60 s without data instead of after 30 minutes, keeps its .part file and resumes it with a range request; Cancel stops it. - Older release folders under %TEMP%\Titano\updates are removed after a verified download; an unexpected exception never leaves "Downloading". - Tooltips show the package size; stale machine translations of the three rewritten tooltips are removed so they fall back to English. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
36 files changed
+828
-298
No files matched your search
@@ -55,11 +55,14 @@
|
||||
<ui:StatusGlyph Kind="{Binding UpdateKind}" Text="{Binding UpdateText}" FontSize="13" VerticalAlignment="Center"
|
||||
Visibility="{Binding HasUpdateText, Converter={StaticResource BoolToVisibility}}" />
|
||||
<Button Style="{StaticResource Button.Link}" FontSize="13" Margin="12,0,0,0" VerticalAlignment="Center" Content="{l:Loc About.Update.Download}"
|
||||
Command="{Binding DownloadCommand}" ToolTip="{l:Loc Tooltips.About.Download}"
|
||||
Command="{Binding DownloadCommand}" ToolTip="{Binding DownloadToolTip}"
|
||||
Visibility="{Binding IsUpdateAvailable, Converter={StaticResource BoolToVisibility}}" />
|
||||
<Button Style="{StaticResource Button.Link}" FontSize="13" Margin="12,0,0,0" VerticalAlignment="Center" Content="{l:Loc About.Update.ShowSetup}"
|
||||
Command="{Binding ShowSetupCommand}" ToolTip="{l:Loc Tooltips.About.ShowSetup}"
|
||||
Visibility="{Binding IsSetupReady, Converter={StaticResource BoolToVisibility}}" />
|
||||
<Button Style="{StaticResource Button.Link}" FontSize="13" Margin="12,0,0,0" VerticalAlignment="Center" Content="{l:Loc About.Update.Cancel}"
|
||||
Command="{Binding CancelDownloadCommand}" ToolTip="{l:Loc Tooltips.About.CancelDownload}"
|
||||
Visibility="{Binding IsDownloading, Converter={StaticResource BoolToVisibility}}" />
|
||||
<Button Style="{StaticResource Button.Link}" FontSize="13" Margin="12,0,0,0" VerticalAlignment="Center" Content="{l:Loc About.Update.ShowFile}"
|
||||
Command="{Binding ShowPackageCommand}" ToolTip="{Binding ShowPackageToolTip}"
|
||||
Visibility="{Binding IsPackageReady, Converter={StaticResource BoolToVisibility}}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
|
||||
Reference in new issue
Block a user