Skip to content

Commit

Permalink
修复 Ollama 终结点没有正确显示的问题 (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richasy authored Sep 30, 2024
1 parent 4074b98 commit 4b1a6e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ protected override void OnControlLoaded()
KeyCard.Visibility = Visibility.Collapsed;
}

EndpointBox.Text = (ViewModel.Config as ClientEndpointConfigBase)?.Endpoint ?? string.Empty;
ViewModel.CheckCurrentConfig();
}

private void OnKeyBoxLoaded(object sender, RoutedEventArgs e)
{
KeyBox.Password = ViewModel.Config?.Key ?? string.Empty;
EndpointBox.Text = (ViewModel.Config as ClientEndpointConfigBase)?.Endpoint ?? string.Empty;
KeyBox.Focus(FocusState.Programmatic);
}

Expand Down

0 comments on commit 4b1a6e9

Please sign in to comment.