mirror of
https://github.com/2dust/v2rayN.git
synced 2025-07-01 12:32:10 +00:00
fix bugs
This commit is contained in:
parent
9b4bf455b4
commit
42fd5b6eb2
2 changed files with 13 additions and 7 deletions
|
@ -638,6 +638,8 @@ namespace v2rayN.ViewModels
|
||||||
_subId = SelectedSub?.id;
|
_subId = SelectedSub?.id;
|
||||||
|
|
||||||
RefreshServers();
|
RefreshServers();
|
||||||
|
|
||||||
|
_updateView("ProfilesFocus");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ServerFilterChanged(bool c)
|
private void ServerFilterChanged(bool c)
|
||||||
|
|
|
@ -184,6 +184,10 @@ namespace v2rayN.Views
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
else if (action == "ProfilesFocus")
|
||||||
|
{
|
||||||
|
lstProfiles.Focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void MainWindow_Closing(object? sender, CancelEventArgs e)
|
private void MainWindow_Closing(object? sender, CancelEventArgs e)
|
||||||
|
@ -212,10 +216,10 @@ namespace v2rayN.Views
|
||||||
}
|
}
|
||||||
private void LstProfiles_LoadingRow(object? sender, DataGridRowEventArgs e)
|
private void LstProfiles_LoadingRow(object? sender, DataGridRowEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Row.GetIndex() == 0)
|
//if (e.Row.GetIndex() == 0)
|
||||||
{
|
//{
|
||||||
lstProfiles.Focus();
|
// lstProfiles.Focus();
|
||||||
}
|
//}
|
||||||
|
|
||||||
e.Row.Header = e.Row.GetIndex() + 1;
|
e.Row.Header = e.Row.GetIndex() + 1;
|
||||||
}
|
}
|
||||||
|
@ -323,15 +327,15 @@ namespace v2rayN.Views
|
||||||
{
|
{
|
||||||
ViewModel?.MoveServer(EMove.Top);
|
ViewModel?.MoveServer(EMove.Top);
|
||||||
}
|
}
|
||||||
else if (e.Key == Key.B)
|
else if (e.Key == Key.U)
|
||||||
{
|
{
|
||||||
ViewModel?.MoveServer(EMove.Up);
|
ViewModel?.MoveServer(EMove.Up);
|
||||||
}
|
}
|
||||||
else if (e.Key == Key.U)
|
else if (e.Key == Key.D)
|
||||||
{
|
{
|
||||||
ViewModel?.MoveServer(EMove.Down);
|
ViewModel?.MoveServer(EMove.Down);
|
||||||
}
|
}
|
||||||
else if (e.Key == Key.D)
|
else if (e.Key == Key.B)
|
||||||
{
|
{
|
||||||
ViewModel?.MoveServer(EMove.Bottom);
|
ViewModel?.MoveServer(EMove.Bottom);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue