mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-25 10:20:16 -06:00
SDA-4380 - fix userDataPath validation (#2004)
This commit is contained in:
parent
d3d91c3d70
commit
74868c2667
@ -29,7 +29,7 @@ class AutoLaunchController {
|
||||
*/
|
||||
public enableAutoLaunch(): void {
|
||||
const { userDataPath } = config.getConfigFields(['userDataPath']);
|
||||
if (userDataPath === '') {
|
||||
if (!userDataPath) {
|
||||
app.setLoginItemSettings({ openAtLogin: true, path: props.path });
|
||||
} else {
|
||||
app.setLoginItemSettings({
|
||||
@ -67,9 +67,8 @@ class AutoLaunchController {
|
||||
const { launchOnStartup }: IConfig = config.getConfigFields([
|
||||
'launchOnStartup',
|
||||
]);
|
||||
const {
|
||||
openAtLogin: isAutoLaunchEnabled,
|
||||
}: LoginItemSettings = this.isAutoLaunchEnabled();
|
||||
const { openAtLogin: isAutoLaunchEnabled }: LoginItemSettings =
|
||||
this.isAutoLaunchEnabled();
|
||||
|
||||
if (launchOnStartup === CloudConfigDataTypes.ENABLED) {
|
||||
if (!isAutoLaunchEnabled) {
|
||||
|
Loading…
Reference in New Issue
Block a user