From b7f0108f527f5fe23486eccf0ed5ca9b411feb37 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Fri, 14 Mar 2025 07:54:22 +0100 Subject: [PATCH] Fixed bug where index would not be read correctly --- ENI2/DetailRootControl.xaml.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ENI2/DetailRootControl.xaml.cs b/ENI2/DetailRootControl.xaml.cs index 2a1f9841..039cd0d5 100644 --- a/ENI2/DetailRootControl.xaml.cs +++ b/ENI2/DetailRootControl.xaml.cs @@ -579,10 +579,12 @@ namespace ENI2 if (currentControl is OverViewDetailControl) { // ggf. hat sich die Ticketnr geƤndert.. - DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).Save(currentControl.Core); - currentMainTabIndex = currentControl.SelectedTabIndex; + DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).Save(currentControl.Core); } + currentMainTabIndex = currentControl.SelectedTabIndex; + Trace.WriteLine($"Last selected tab index: {currentMainTabIndex}"); + this.buttonSaveAll.Visibility = Visibility.Hidden; this.buttonSave.Visibility = Visibility.Hidden;