From ee837376cf8f85e23363fe4c557e368e68d7e0a0 Mon Sep 17 00:00:00 2001 From: "gabriel.huot-vezina" Date: Thu, 20 Jun 2024 21:48:45 -0400 Subject: [PATCH] #345 fixed duplicate fb, had to remove event trigger. --- GSCFieldApp/ViewModels/FieldBooksPageViewModel.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/GSCFieldApp/ViewModels/FieldBooksPageViewModel.cs b/GSCFieldApp/ViewModels/FieldBooksPageViewModel.cs index 60c693fb..57256ff6 100644 --- a/GSCFieldApp/ViewModels/FieldBooksPageViewModel.cs +++ b/GSCFieldApp/ViewModels/FieldBooksPageViewModel.cs @@ -664,6 +664,7 @@ public void ProjectEditButton_Tapped(object sender, Windows.UI.Xaml.Input.Tapped var modal = Window.Current.Content as ModalDialog; var view = modal.ModalContent as Views.FieldBookDialog; modal.ModalContent = view = new Views.FieldBookDialog(selectedProject); + view.ViewModel.projectEdit -= ViewModel_projectEdit; view.ViewModel.projectEdit += ViewModel_projectEdit; modal.IsModal = true; });