Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Halo-Michael committed Aug 3, 2020
1 parent dfc72de commit cb23929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rcsetgenerator.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
int main() {
int ret = 0;
CFArrayRef keyList = CFPreferencesCopyKeyList(bundleID, CFSTR("mobile"), kCFPreferencesAnyHost);
if (keyList == nil || !CFArrayContainsValue(keyList, CFRangeMake(0, CFArrayGetCount(keyList)), CFSTR("enabled")) || CFBooleanGetValue(CFPreferencesCopyValue(CFSTR("enabled"), bundleID, CFSTR("mobile"), kCFPreferencesAnyHost))) {
if (keyList == NULL || !CFArrayContainsValue(keyList, CFRangeMake(0, CFArrayGetCount(keyList)), CFSTR("enabled")) || CFBooleanGetValue(CFPreferencesCopyValue(CFSTR("enabled"), bundleID, CFSTR("mobile"), kCFPreferencesAnyHost))) {
int status = system("setgenerator");
ret = WEXITSTATUS(status);
}
Expand Down

0 comments on commit cb23929

Please sign in to comment.