From c1ded8c21f19038c14dd8b91ef7af750313ad82e Mon Sep 17 00:00:00 2001 From: Aptivi Date: Wed, 4 Sep 2024 13:28:57 +0300 Subject: [PATCH] upd - Updated libraries --- Type: upd Breaking: False Doc Required: False Backport Required: False Part: 1/1 --- Terminaux.Console/Terminaux.Console.csproj | 2 +- .../Inputs/Interactive/InteractiveTuiTools.cs | 16 ++++++++-------- Terminaux/Terminaux.csproj | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Terminaux.Console/Terminaux.Console.csproj b/Terminaux.Console/Terminaux.Console.csproj index db24da73..dd3897e1 100644 --- a/Terminaux.Console/Terminaux.Console.csproj +++ b/Terminaux.Console/Terminaux.Console.csproj @@ -25,7 +25,7 @@ - + diff --git a/Terminaux/Inputs/Interactive/InteractiveTuiTools.cs b/Terminaux/Inputs/Interactive/InteractiveTuiTools.cs index b5ddaed8..d2f6e6e3 100644 --- a/Terminaux/Inputs/Interactive/InteractiveTuiTools.cs +++ b/Terminaux/Inputs/Interactive/InteractiveTuiTools.cs @@ -426,13 +426,13 @@ private static void DrawStatus(BaseInteractiveTui binding.BindingPointerButton == mouse.Button && binding.BindingPointerButtonPress == mouse.ButtonPress && binding.BindingPointerModifiers == mouse.Modifiers); - TPrimary selectedData = (TPrimary)dataPrimary.GetElementFromIndex(interactiveTui.FirstPaneCurrentSelection - 1); - TSecondary selectedDataSecondary = (TSecondary)dataSecondary.GetElementFromIndex(interactiveTui.SecondPaneCurrentSelection - 1); + TPrimary? selectedData = (TPrimary?)dataPrimary.GetElementFromIndex(interactiveTui.FirstPaneCurrentSelection - 1); + TSecondary? selectedDataSecondary = (TSecondary?)dataSecondary.GetElementFromIndex(interactiveTui.SecondPaneCurrentSelection - 1); object? finalData = interactiveTui.CurrentPane == 2 ? selectedDataSecondary : selectedData; foreach (var implementedBinding in implementedBindings) { @@ -890,8 +890,8 @@ void UpdatePositionBasedOnArrowPress(PointerEventContext mouse) // Now, get the implemented bindings from the pressed key var implementedBindings = allBindings.Where((binding) => binding.BindingKeyName == key.Key && binding.BindingKeyModifiers == key.Modifiers); - TPrimary selectedData = (TPrimary)dataPrimary.GetElementFromIndex(interactiveTui.FirstPaneCurrentSelection - 1); - TSecondary selectedDataSecondary = (TSecondary)dataSecondary.GetElementFromIndex(interactiveTui.SecondPaneCurrentSelection - 1); + TPrimary? selectedData = (TPrimary?)dataPrimary.GetElementFromIndex(interactiveTui.FirstPaneCurrentSelection - 1); + TSecondary? selectedDataSecondary = (TSecondary?)dataSecondary.GetElementFromIndex(interactiveTui.SecondPaneCurrentSelection - 1); object? finalData = interactiveTui.CurrentPane == 2 ? selectedDataSecondary : selectedData; foreach (var implementedBinding in implementedBindings) { diff --git a/Terminaux/Terminaux.csproj b/Terminaux/Terminaux.csproj index 068c6cc9..0f48325c 100644 --- a/Terminaux/Terminaux.csproj +++ b/Terminaux/Terminaux.csproj @@ -43,12 +43,12 @@ - + - + - - + +