Add launch-on login option
See [#5244][0]. [0]: https://github.com/signalapp/Signal-Desktop/pull/5244
This commit is contained in:
parent
b41dab2704
commit
75d54e7737
10 changed files with 44 additions and 2 deletions
|
@ -68,6 +68,10 @@ try {
|
|||
window.getServerPublicParams = () => config.serverPublicParams;
|
||||
window.getSfuUrl = () => config.sfuUrl;
|
||||
window.isBehindProxy = () => Boolean(config.proxyUrl);
|
||||
window.getAutoLaunch = () => app.getLoginItemSettings().openAtLogin;
|
||||
window.setAutoLaunch = value => {
|
||||
app.setLoginItemSettings({ openAtLogin: Boolean(value) });
|
||||
};
|
||||
|
||||
function setSystemTheme() {
|
||||
window.systemTheme = nativeTheme.shouldUseDarkColors ? 'dark' : 'light';
|
||||
|
@ -251,6 +255,9 @@ try {
|
|||
installGetter('spell-check', 'getSpellCheck');
|
||||
installSetter('spell-check', 'setSpellCheck');
|
||||
|
||||
installGetter('auto-launch', 'getAutoLaunch');
|
||||
installSetter('auto-launch', 'setAutoLaunch');
|
||||
|
||||
installGetter('always-relay-calls', 'getAlwaysRelayCalls');
|
||||
installSetter('always-relay-calls', 'setAlwaysRelayCalls');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue