Fixed bug where index would not be read correctly

This commit is contained in:
Daniel Schick 2025-03-14 07:54:22 +01:00
parent d1c131c52b
commit b7f0108f52

View File

@ -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;