Browse Source

Fixed double refresh issue

Kenric Nugteren 1 year ago
parent
commit
4fbf69f84c

+ 4 - 0
prs.desktop/Panels/Employees/EmployeePanel.xaml.cs

@@ -125,8 +125,11 @@ namespace PRSDesktop
         {
         }
 
+        private bool _loaded = false;
+
         private void Tab_SelectionChanged(object sender, SelectionChangedEventArgs e)
         {
+            if (sender != Tab || !_loaded) return;
             RefreshCurrentTab();
         }
 
@@ -163,6 +166,7 @@ namespace PRSDesktop
         public void Refresh()
         {
             RefreshCurrentTab();
+            _loaded = true;
         }
 
         public string SectionName => "Employees";

+ 1 - 0
prs.stores/PRSStores.projitems

@@ -31,6 +31,7 @@
     <Compile Include="$(MSBuildThisFileDirectory)EntityDocuments\DigitalFormDocumentStore.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)EntityDocuments\EntityDocumentStore.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)EntityDocuments\JobDocumentSetSetMileStoneFileStore.cs" />
+    <Compile Include="$(MSBuildThisFileDirectory)EntityDocuments\JobScopeDocumentStore.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)EntityDocuments\MeetingItemDocumentStore.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)EntityDocuments\SetoutDocumentStore.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)EntityForms\AssignmentFormStore.cs" />