fix(uploader): Start with Windows shows what Task Manager left when the settings open
The Uploader runs for the whole sign-in session and read its sign-in entry only at start, so an entry Task Manager turned off meanwhile still showed as ticked. Opening the settings panel now reads it again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
3 files changed
+41
-4
No files matched your search
@@ -41,13 +41,16 @@ public sealed class SampleData
|
||||
],
|
||||
};
|
||||
|
||||
/// <summary>A view model over in-memory sample services; settings changes are discarded.</summary>
|
||||
public MainViewModel CreateViewModel()
|
||||
/// <summary>
|
||||
/// A view model over in-memory sample services; settings changes are discarded. <paramref name="startup"/> stands for
|
||||
/// the sign-in entry (an in-memory one, on, by default).
|
||||
/// </summary>
|
||||
public MainViewModel CreateViewModel(IStartupRegistration? startup = null)
|
||||
{
|
||||
var memory = new ProcessedFileMemory();
|
||||
_session.BandwidthLimit = Settings.BandwidthLimit;
|
||||
_vm = new MainViewModel(new UploaderServices(
|
||||
Settings, () => { }, _session, _queue, new SampleEngine(_queue), new SampleStartup(), new UploaderDialogs(),
|
||||
Settings, () => { }, _session, _queue, new SampleEngine(_queue), startup ?? new SampleStartup(), new UploaderDialogs(),
|
||||
new WatchFolderService(memory, _queue.ContainsPath), memory, string.Empty));
|
||||
foreach (var w in _vm.WatchFolders) w.IsAvailable = true;
|
||||
// A disconnected drive: its chip shows the hollow ring and wraps to a second line.
|
||||
|
||||
Reference in new issue
Block a user