Skip to content

Commit 1a94dd4

Browse files
committed
fix: header disappear after returning search page
1 parent 902cee2 commit 1a94dd4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/ViewModels/Pages/Environment/EnvironmentViewModel.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ private void InitializeViewModel()
3939
[ObservableProperty]
4040
private EnvironmentModel? _currentEnvironment;
4141

42-
[ObservableProperty]
43-
[NotifyCanExecuteChangedFor(nameof(RemoveEnvironmentCommand), nameof(CheckEnvironmentCommand))]
44-
private bool _environmentSelected;
45-
4642
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
4743
{
4844
base.OnPropertyChanged(e);
@@ -198,7 +194,6 @@ private async Task RemoveEnvironment(EnvironmentModel environment)
198194

199195
var mainWindowViewModel = App.GetService<MainWindowViewModel>();
200196
mainWindowViewModel.ApplicationTitle = "Pip Manager";
201-
EnvironmentSelected = false;
202197
}
203198

204199
#endregion

src/ViewModels/Pages/Search/SearchViewModel.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ public Task OnNavigatedToAsync()
141141
{
142142
if (!_isInitialized)
143143
InitializeViewModel();
144+
Application.Current.Dispatcher.InvokeAsync(() =>
145+
{
146+
navigationService.GetNavigationControl().BreadcrumbBar!.Visibility = Visibility.Visible;
147+
});
144148
return Task.CompletedTask;
145149
}
146150

0 commit comments

Comments
 (0)