[macos] fix bug 64443

This commit is contained in:
maxkadushkin
2024-04-03 22:23:00 +03:00
parent e10d331c70
commit 5617a24613
2 changed files with 12 additions and 0 deletions

View File

@ -105,6 +105,10 @@
@"type" : param,
@"active" : @(YES) }];
}
} else if ([arg isEqualToString:@"--lock-portals"]) {
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:ASCUserLockPageConnections];
} else if ([arg isEqualToString:@"--unlock-portals"]) {
[[NSUserDefaults standardUserDefaults] removeObjectForKey:ASCUserLockPageConnections];
}
}
}

View File

@ -1524,6 +1524,14 @@
[self.cefStartPageView apply:pEvent];
if ([[NSUserDefaults standardUserDefaults] boolForKey:ASCUserLockPageConnections]) {
pCommand->put_Command(L"panel:hide");
pCommand->put_Param(L"connect");
pEvent->AddRef();
[self.cefStartPageView apply:pEvent];
}
pCommand->put_Command(L"app:ready");
pCommand->put_Param(L"");