Add Font setting for macos

pull/6161/head
2dust 2024-11-25 21:00:49 +08:00
parent d9c22de6b8
commit ca38239bce
1 changed files with 7 additions and 6 deletions

View File

@ -169,6 +169,12 @@ namespace v2rayN.Desktop.Views
{
tabSystemproxy.IsVisible = false;
}
if (Utils.IsOSX())
{
togAutoRun.IsVisible = false;
//TODO
}
}
private async Task<bool> UpdateViewHandler(EViewAction action, object? obj)
@ -202,7 +208,7 @@ namespace v2rayN.Desktop.Views
{
return lstFonts;
}
else if (Utils.IsLinux())
else if (Utils.IsLinux() || Utils.IsOSX())
{
var result = await Utils.GetLinuxFontFamily("zh");
if (result.IsNullOrEmpty())
@ -218,11 +224,6 @@ namespace v2rayN.Desktop.Views
.ToList();
return lst;
}
else if (Utils.IsOSX())
{
//TODO
return lstFonts;
}
}
catch (Exception ex)
{