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

Merge branch 'master' into turn-on-strict

This commit is contained in:
Sebastian Malton 2022-05-11 08:26:21 -04:00
commit fd7fe9af8a
2 changed files with 0 additions and 20 deletions

View File

@ -125,19 +125,6 @@ const allowUntrustedCAs: PreferenceDescription<boolean> = {
}, },
}; };
const allowTelemetry: PreferenceDescription<boolean> = {
fromStore(val) {
return val ?? true;
},
toStore(val) {
if (val === true) {
return undefined;
}
return val;
},
};
const allowErrorReporting: PreferenceDescription<boolean> = { const allowErrorReporting: PreferenceDescription<boolean> = {
fromStore(val) { fromStore(val) {
return val ?? true; return val ?? true;
@ -387,7 +374,6 @@ export const DESCRIPTORS = {
terminalTheme, terminalTheme,
localeTimezone, localeTimezone,
allowUntrustedCAs, allowUntrustedCAs,
allowTelemetry,
allowErrorReporting, allowErrorReporting,
downloadMirror, downloadMirror,
downloadKubectlBinaries, downloadKubectlBinaries,

View File

@ -51,7 +51,6 @@ export class UserStore extends BaseStore<UserStoreModel> /* implements UserStore
*/ */
@observable newContexts = observable.set<string>(); @observable newContexts = observable.set<string>();
@observable allowTelemetry!: StoreType<typeof DESCRIPTORS["allowTelemetry"]>;
@observable allowErrorReporting!: StoreType<typeof DESCRIPTORS["allowErrorReporting"]>; @observable allowErrorReporting!: StoreType<typeof DESCRIPTORS["allowErrorReporting"]>;
@observable allowUntrustedCAs!: StoreType<typeof DESCRIPTORS["allowUntrustedCAs"]>; @observable allowUntrustedCAs!: StoreType<typeof DESCRIPTORS["allowUntrustedCAs"]>;
@observable colorTheme!: StoreType<typeof DESCRIPTORS["colorTheme"]>; @observable colorTheme!: StoreType<typeof DESCRIPTORS["colorTheme"]>;
@ -106,11 +105,6 @@ export class UserStore extends BaseStore<UserStoreModel> /* implements UserStore
} }
startMainReactions() { startMainReactions() {
// track telemetry availability
reaction(() => this.allowTelemetry, allowed => {
appEventBus.emit({ name: "telemetry", action: allowed ? "enabled" : "disabled" });
});
// open at system start-up // open at system start-up
reaction(() => this.openAtLogin, openAtLogin => { reaction(() => this.openAtLogin, openAtLogin => {
app.setLoginItemSettings({ app.setLoginItemSettings({