feat: Implement update confirmation handling and streamline update process

This commit is contained in:
HueByte
2026-07-16 07:04:26 +02:00
parent 494dcb46cf
commit dbf6565d18
3 changed files with 99 additions and 70 deletions
+6
View File
@@ -40,6 +40,12 @@ public sealed class AppOrchestrator : IDisposable
public MainWindow MainWindow => _mainWindow;
/// <summary>
/// Set when the user confirms an update. The host must run this after the Terminal.Gui main
/// loop exits (console restored), so the updater's in-place restart doesn't fight the TUI.
/// </summary>
public Func<Task>? PendingUpdate => _updateService.PendingUpdate;
public AppOrchestrator(IApplication app, ClientConfig config)
{
_app = app;