feat(installer): replace sync ModeDetector with async InstallModeDetector

Placeholder edit to App.xaml.cs to keep the project building until Task 11
wires the new async detector.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mika Kuns
2026-04-15 09:19:16 +02:00
parent 83d7058b32
commit 97fb215ce6
4 changed files with 153 additions and 26 deletions

View File

@@ -19,20 +19,12 @@ public partial class App : Application
{
base.OnStartup(e);
var mode = ModeDetector.Detect();
_services = BuildServices();
Window mainWindow = mode switch
// TODO(Task 11): replace with async InstallModeDetector
Window mainWindow = new WizardWindow
{
InstallerMode.Wizard => new WizardWindow
{
DataContext = _services.GetRequiredService<WizardViewModel>()
},
InstallerMode.Settings => new SettingsWindow
{
DataContext = _services.GetRequiredService<SettingsViewModel>()
},
_ => throw new InvalidOperationException($"Unknown installer mode: {mode}")
DataContext = _services.GetRequiredService<WizardViewModel>()
};
DarkTitleBar.Apply(mainWindow);