Skip to content

Commit

Permalink
upd - Updated libraries
Browse files Browse the repository at this point in the history
---

Type: upd
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Sep 4, 2024
1 parent fde218d commit c1ded8c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Terminaux.Console/Terminaux.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Textify.Offline.Data.Analysis" Version="1.11.1.1" />
<PackageReference Include="Textify.Offline.Data.Analysis" Version="1.11.2" />
</ItemGroup>

</Project>
16 changes: 8 additions & 8 deletions Terminaux/Inputs/Interactive/InteractiveTuiTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,13 @@ private static void DrawStatus<TPrimary, TSecondary>(BaseInteractiveTui<TPrimary
if (interactiveTui.CurrentPane == 2)
{
var data = interactiveTui.SecondaryDataSource;
TSecondary selectedData = (TSecondary)data.GetElementFromIndex(interactiveTui.SecondPaneCurrentSelection - 1);
TSecondary? selectedData = (TSecondary?)data.GetElementFromIndex(interactiveTui.SecondPaneCurrentSelection - 1);
interactiveTui.Status = selectedData is not null ? interactiveTui.GetStatusFromItemSecondary(selectedData) : "No status.";
}
else
{
var data = interactiveTui.PrimaryDataSource;
TPrimary selectedData = (TPrimary)data.GetElementFromIndex(interactiveTui.FirstPaneCurrentSelection - 1);
TPrimary? selectedData = (TPrimary?)data.GetElementFromIndex(interactiveTui.FirstPaneCurrentSelection - 1);
interactiveTui.Status = selectedData is not null ? interactiveTui.GetStatusFromItem(selectedData) : "No status.";
}

Expand Down Expand Up @@ -726,8 +726,8 @@ void UpdatePositionBasedOnArrowPress(PointerEventContext mouse)
binding.BindingKeyName == ConsoleKey.Enter);
if (implementedBindings.Any())
loopBail = true;
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)
{
Expand Down Expand Up @@ -757,8 +757,8 @@ void UpdatePositionBasedOnArrowPress(PointerEventContext mouse)
// Now, get the implemented bindings from the pressed key
var implementedBindings = allBindings.Where((binding) =>
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)
{
Expand Down Expand Up @@ -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)
{
Expand Down
8 changes: 4 additions & 4 deletions Terminaux/Terminaux.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Magico" Version="1.2.1" />
<PackageReference Include="Magico" Version="1.2.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="SpecProbe.Software" Version="3.0.0" />
<PackageReference Include="SpecProbe.Software" Version="3.1.0" />
<PackageReference Include="System.Memory" Version="4.5.5" />
<PackageReference Include="Textify.Figlet" Version="1.11.1.1" />
<PackageReference Include="Textify.Offline" Version="1.11.1.1" />
<PackageReference Include="Textify.Figlet" Version="1.11.2" />
<PackageReference Include="Textify.Offline" Version="1.11.2" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit c1ded8c

Please sign in to comment.