mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[macos] fix bug 64443
This commit is contained in:
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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"");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user