From ca38239bce165aaa9c0f2bd1b6ea455599efc93f Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Mon, 25 Nov 2024 21:00:49 +0800 Subject: [PATCH] Add Font setting for macos --- .../Views/OptionSettingWindow.axaml.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs index 6b853c14..8642defe 100644 --- a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs +++ b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs @@ -169,6 +169,12 @@ namespace v2rayN.Desktop.Views { tabSystemproxy.IsVisible = false; } + + if (Utils.IsOSX()) + { + togAutoRun.IsVisible = false; + //TODO + } } private async Task 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) {