From 238c60b592dc13186d551395a4b6889054c3fff8 Mon Sep 17 00:00:00 2001 From: Ivan Josipovic <9521987+IvanJosipovic@users.noreply.github.com> Date: Sun, 8 Sep 2024 11:28:08 -0700 Subject: [PATCH] fix: File > Exit --- src/KubeUI/ViewModels/MainViewModel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/KubeUI/ViewModels/MainViewModel.cs b/src/KubeUI/ViewModels/MainViewModel.cs index 5c2da888..831adf88 100644 --- a/src/KubeUI/ViewModels/MainViewModel.cs +++ b/src/KubeUI/ViewModels/MainViewModel.cs @@ -175,6 +175,8 @@ private void ResetLayout() [RelayCommand] private void Close() { + if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime lifetime) + lifetime.Shutdown(); } [RelayCommand]