diff --git a/GHelper/GHelper/ViewModel/ApplicationViewModel.cs b/GHelper/GHelper/ViewModel/ApplicationViewModel.cs index f135b36..75ecbe5 100644 --- a/GHelper/GHelper/ViewModel/ApplicationViewModel.cs +++ b/GHelper/GHelper/ViewModel/ApplicationViewModel.cs @@ -227,6 +227,14 @@ private void HandleProfileSetActiveForApplication(ProfileViewModel profileWithCh } } } + + public override void FireDeletedEvent() + { + if (this.Application is not DesktopApplication) + { + base.FireDeletedEvent(); + } + } [NotifyPropertyChangedInvocator] protected override void OnPropertyChanged([CallerMemberName] string? propertyName = null) @@ -267,7 +275,7 @@ private static ApplicationViewModel CreateApplicationViewModelForApplicationMode } } - public enum InstallState + public enum InstallState { Installed, NotInstalled diff --git a/GHelper/GHelper/ViewModel/GHubRecordViewModel.cs b/GHelper/GHelper/ViewModel/GHubRecordViewModel.cs index 16389cd..7a49df6 100644 --- a/GHelper/GHelper/ViewModel/GHubRecordViewModel.cs +++ b/GHelper/GHelper/ViewModel/GHubRecordViewModel.cs @@ -64,7 +64,7 @@ public void FireSaveEvent() UserSaved?.Invoke(); } - public void FireDeletedEvent() + public virtual void FireDeletedEvent() { UserDeletedRecord?.Invoke(this); }