New controls, main view

This commit is contained in:
2023-08-09 20:40:54 +02:00
parent d549733b71
commit 7dcca6363b
41 changed files with 668 additions and 234 deletions

View File

@@ -75,7 +75,7 @@ public class RapidTravelModeKeyInputHandler : IRapidTravelModeKeyInputHandler
if (_appState.RapidTravelText.Value!.Length > 0)
{
args.Handled = true;
await _appState.RapidTravelText.SetValue(
await _appState.SetRapidTravelTextAsync(
_appState.RapidTravelText.Value![..^1]
);
}
@@ -83,7 +83,7 @@ public class RapidTravelModeKeyInputHandler : IRapidTravelModeKeyInputHandler
else if (keyString.Length == 1)
{
args.Handled = true;
await _appState.RapidTravelText.SetValue(
await _appState.SetRapidTravelTextAsync(
_appState.RapidTravelText.Value + keyString.ToLower()
);
}

View File

@@ -251,7 +251,7 @@ public class NavigationUserCommandHandlerService : UserCommandHandlerServiceBase
if (_currentSelectedItem?.Value is not IContainerViewModel containerViewModel || containerViewModel.Container is null)
return;
await _appState.RapidTravelText.SetValue("");
await _appState.SetRapidTravelTextAsync("");
if (_selectedTab?.Tab is { } tab)
{
await tab.SetCurrentLocation(containerViewModel.Container);
@@ -260,13 +260,13 @@ public class NavigationUserCommandHandlerService : UserCommandHandlerServiceBase
private async Task GoUp()
{
if (_currentLocation?.Value?.Parent is not AbsolutePath parentPath ||
if (_currentLocation?.Value?.Parent is not { } parentPath ||
await parentPath.ResolveAsyncSafe() is not IContainer newContainer)
{
return;
}
await _appState.RapidTravelText.SetValue("");
await _appState.SetRapidTravelTextAsync("");
if (_selectedTab?.Tab is { } tab)
{
await tab.SetCurrentLocation(newContainer);