mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
fa94773bf3
commit
b8752f7127
@ -53,7 +53,7 @@ export class UserStore extends BaseStore<UserStoreModel> {
|
|||||||
colorTheme: UserStore.defaultTheme,
|
colorTheme: UserStore.defaultTheme,
|
||||||
downloadMirror: "default",
|
downloadMirror: "default",
|
||||||
downloadKubectlBinaries: true, // Download kubectl binaries matching cluster version
|
downloadKubectlBinaries: true, // Download kubectl binaries matching cluster version
|
||||||
openAtLogin: true,
|
openAtLogin: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
protected async handleOnLoad() {
|
protected async handleOnLoad() {
|
||||||
@ -66,12 +66,12 @@ export class UserStore extends BaseStore<UserStoreModel> {
|
|||||||
if (app) {
|
if (app) {
|
||||||
// track telemetry availability
|
// track telemetry availability
|
||||||
reaction(() => this.preferences.allowTelemetry, allowed => {
|
reaction(() => this.preferences.allowTelemetry, allowed => {
|
||||||
appEventBus.emit({name: "telemetry", action: allowed ? "enabled" : "disabled"});
|
appEventBus.emit({ name: "telemetry", action: allowed ? "enabled" : "disabled" });
|
||||||
});
|
});
|
||||||
|
|
||||||
// open at system start-up
|
// open at system start-up
|
||||||
reaction(() => this.preferences.openAtLogin, open => {
|
reaction(() => this.preferences.openAtLogin, openAtLogin => {
|
||||||
app.setLoginItemSettings({ openAtLogin: open });
|
app.setLoginItemSettings({ openAtLogin });
|
||||||
}, {
|
}, {
|
||||||
fireImmediately: true,
|
fireImmediately: true,
|
||||||
});
|
});
|
||||||
@ -95,7 +95,7 @@ export class UserStore extends BaseStore<UserStoreModel> {
|
|||||||
|
|
||||||
@action
|
@action
|
||||||
saveLastSeenAppVersion() {
|
saveLastSeenAppVersion() {
|
||||||
appEventBus.emit({name: "app", action: "whats-new-seen"});
|
appEventBus.emit({ name: "app", action: "whats-new-seen" });
|
||||||
this.lastSeenAppVersion = getAppVersion();
|
this.lastSeenAppVersion = getAppVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user