Don't open Lens at OS login by default, close #1697 (#1859)

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman authored and GitHub committed 2020-12-30 01:56:46 +02:00
1 parent fa94773bf3
commit b8752f7127
1 file changed
+3 -3
+3 -3
View File
@@ -53,7 +53,7 @@ export class UserStore extends BaseStore<UserStoreModel> {
colorTheme: UserStore.defaultTheme,
downloadMirror: "default",
downloadKubectlBinaries: true, // Download kubectl binaries matching cluster version
openAtLogin: true,
openAtLogin: false,
};
protected async handleOnLoad() {
@@ -70,8 +70,8 @@ export class UserStore extends BaseStore<UserStoreModel> {
});
// open at system start-up
reaction(() => this.preferences.openAtLogin, open => {
app.setLoginItemSettings({ openAtLogin: open });
reaction(() => this.preferences.openAtLogin, openAtLogin => {
app.setLoginItemSettings({ openAtLogin });
}, {
fireImmediately: true,
});