Skip to content

Commit

Permalink
Fix problems with adding/deleting profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
felixse committed Jan 19, 2021
1 parent 9a1783c commit b8610f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FluentTerminal.App.ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ private void OnShellProfileDeleted(ShellProfileDeletedMessage message)

UpdateDefaultShellProfile();

CreateMenuViewModel();
ApplicationView.ExecuteOnUiThreadAsync(CreateMenuViewModel, CoreDispatcherPriority.Low, true);
}

private void OnShellProfileChanged(ShellProfileChangedMessage message)
{
UpdateDefaultShellProfile();

CreateMenuViewModel();
ApplicationView.ExecuteOnUiThreadAsync(CreateMenuViewModel, CoreDispatcherPriority.Low, true);
}

private void OnShellProfileAdded(ShellProfileAddedMessage message)
Expand All @@ -194,7 +194,7 @@ private void OnShellProfileAdded(ShellProfileAddedMessage message)

UpdateDefaultShellProfile();

CreateMenuViewModel();
ApplicationView.ExecuteOnUiThreadAsync(CreateMenuViewModel, CoreDispatcherPriority.Low, true);
}

private void OnDefaultShellProfileChanged(DefaultShellProfileChangedMessage message)
Expand Down

0 comments on commit b8610f6

Please sign in to comment.