Update CheckUpdateViewModel.cs

This commit is contained in:
JieXu 2025-09-11 23:59:46 +08:00 committed by GitHub
parent 935a3b99e4
commit 8e1d4e059f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,8 +71,6 @@ public class CheckUpdateViewModel : MyReactiveObject
var sp = Utils.StartupPath()?.Replace('\\', '/'); var sp = Utils.StartupPath()?.Replace('\\', '/');
if (!string.IsNullOrEmpty(sp) && sp.StartsWith("/opt/v2rayN", StringComparison.OrdinalIgnoreCase)) if (!string.IsNullOrEmpty(sp) && sp.StartsWith("/opt/v2rayN", StringComparison.OrdinalIgnoreCase))
return true; return true;
if (System.IO.Directory.Exists("/opt/v2rayN"))
return true;
} }
catch catch
{ {