fix: hybrid运行切换语言错误

This commit is contained in:
2248356998 qq.com
2025-05-17 16:32:36 +08:00
parent 5aff6461a1
commit b8ca06c6be
2 changed files with 1 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ public partial class CultureChooser
{
if (_firstRender)
{
if (OperatingSystem.IsBrowser() || !Runtime.IsWeb)
if (OperatingSystem.IsBrowser() || !Runtime.IsWeb || App.EffectiveTypes.FirstOrDefault(a => a.Name.Contains("WebView")) != null)
{
var cultureName = item.Value;
if (cultureName != CultureInfo.CurrentCulture.Name)

View File

@@ -74,6 +74,4 @@ public class MqttCollectProperty : CollectPropertyBase
[DynamicProperty]
public int ConnectTimeout { get; set; } = 3000;
public override int ReIntervalTime { get; set; } = 30;
public override int RetryCount { get; set; } = 3;
}