feat(uploader): check for updates and fetch the single setup
The Uploader had no update check, so an Uploader-only install never heard of a new version. Its settings panel gains an Updates row driven by the shared UpdateFlow: Check on start (opt-out, on for 1.0 settings files), Check now, Download (the single Chronos setup, or the portable zip of a portable copy, verified against the release's SHA256SUMS) and Show setup (reveals the verified file in Explorer; the user runs it). The start-up check is skipped when Chronos.exe sits beside the Uploader, because the desktop's own notice covers the same setup; Check now still works there. A newer release found on start is offered in a toast with Download as its action. The capture scene shows the notice with a sample release. Refs #64 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
58ed737310
commit
7181589590
16 files changed
+661
-8
No files matched your search
@@ -35,6 +35,11 @@ public sealed partial class MainWindow : ChronosWindow
|
||||
vm.PendingToasts.CollectionChanged += OnToastRequested;
|
||||
vm.PropertyChanged += OnViewModelChanged;
|
||||
vm.Connect.PropertyChanged += OnConnectChanged;
|
||||
// Each new update state is announced once, not each percent of a download.
|
||||
vm.Updates.PropertyChanged += (_, e) =>
|
||||
{
|
||||
if (e.PropertyName == nameof(UpdatesViewModel.State)) Dispatcher.BeginInvoke(DispatcherPriority.Background, () => Announce(UpdateStatus));
|
||||
};
|
||||
vm.SignInRequested += (_, _) => FocusLater(Password);
|
||||
PreviewKeyDown += OnPreviewKeyDown;
|
||||
Loaded += (_, _) => FocusStart();
|
||||
|
||||
Reference in new issue
Block a user