1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

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

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2020-12-24 12:40:01 +02:00
parent eb5a775a2d
commit 62a89ce855

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,
});