New controls, main view
This commit is contained in:
@@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user