From 9c5bca144f3527439be4f69aad6c5ae24f5c9d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Kov=C3=A1cs?= Date: Sat, 19 Aug 2023 20:48:50 +0200 Subject: [PATCH] Fix wrong item is selected after moving up a container --- src/Core/FileTime.Core.Services/Tab.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Core/FileTime.Core.Services/Tab.cs b/src/Core/FileTime.Core.Services/Tab.cs index 477bec3..5728d1c 100644 --- a/src/Core/FileTime.Core.Services/Tab.cs +++ b/src/Core/FileTime.Core.Services/Tab.cs @@ -124,8 +124,9 @@ public class Tab : ITab { var itemSelectingContext = new LastItemSelectingContext(CurrentLocation.Value); var lastItemSelectingContext = _lastItemSelectingContext; - _lastItemSelectingContext = itemSelectingContext; if (items == null || items.Count == 0) return Task.FromResult(null); + + _lastItemSelectingContext = itemSelectingContext; if (selected != null) { if (items.Any(i => i.FullName == selected.Path))