Compare commits

...

1 Commits

Author SHA1 Message Date
Shawn Yuan (from Dev Box)
8f87c040b2 fix empty endpoint issue 2025-12-24 15:49:10 +08:00

View File

@@ -794,6 +794,11 @@ namespace Microsoft.PowerToys.Settings.UI.Views
{
endpoint = string.Empty;
}
else if (string.IsNullOrEmpty(endpoint))
{
// If endpoint is required but not provided, use placeholder.
endpoint = GetEndpointPlaceholder(serviceKind);
}
// For endpoint-based services, keep empty if the user didn't provide a value.
if (RequiresApiKeyForService(serviceType) && string.IsNullOrWhiteSpace(trimmedApiKey))