You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
if (![fileManager fileExistsAtPath:kV2RayXHelper] || ![selfisSysconfVersionOK]) {
695
-
NSAlert *installAlert = [[NSAlertalloc] init];
696
-
[installAlert addButtonWithTitle:@"Install"];
697
-
[installAlert addButtonWithTitle:@"Quit"];
698
-
[installAlert setMessageText:@"V2RayX needs to install a small tool to /Library/Application Support/V2RayX/ with administrator privileges to set system proxy quickly.\nOtherwise you need to type in the administrator password every time you change system proxy through V2RayX."];
699
-
if ([installAlert runModal] == NSAlertFirstButtonReturn) {
if (!force && [fileManager fileExistsAtPath:kV2RayXHelper] && [selfisSysconfVersionOK]) {
699
+
// helper already installed
700
+
returnYES;
701
+
}
702
+
NSAlert *installAlert = [[NSAlertalloc] init];
703
+
[installAlert addButtonWithTitle:@"Install"];
704
+
[installAlert addButtonWithTitle:@"Quit"];
705
+
[installAlert setMessageText:@"V2RayX needs to install a small tool to /Library/Application Support/V2RayX/ with administrator privileges to set system proxy quickly.\nOtherwise you need to type in the administrator password every time you change system proxy through V2RayX."];
706
+
if ([installAlert runModal] == NSAlertFirstButtonReturn) {
0 commit comments