feat(ui): open Mission Control from the title bar

This commit is contained in:
Mika Kuns
2026-06-26 16:11:50 +02:00
parent 283310a3fd
commit b1bd91292f
8 changed files with 44 additions and 3 deletions
+5
View File
@@ -1,5 +1,6 @@
using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;
using ClaudeDo.Ui.Services;
@@ -32,6 +33,10 @@ public partial class App : Application
FocusClearing.Install();
// The main window is authoritative — closing it shuts the app down even if the
// modeless Mission Control window is still open.
desktop.ShutdownMode = ShutdownMode.OnMainWindowClose;
desktop.MainWindow = new MainWindow
{
DataContext = services.GetRequiredService<IslandsShellViewModel>(),
-2
View File
@@ -168,8 +168,6 @@ sealed class Program
shell.ConflictResolverFactory =
sp.GetRequiredService<Func<string, ClaudeDo.Ui.ViewModels.Conflicts.ConflictResolverViewModel>>();
sp.GetRequiredService<MergeCoordinator>().Handler = shell.RequestConflictResolutionAsync;
var missionControl = sp.GetRequiredService<MissionControlViewModel>();
missionControl.OpenInApp = id => _ = shell.RevealTaskAsync(id);
return shell;
});