mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Switch defaultUpdateChannel to not use Initializable at all
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
53920a7046
commit
353da78d4b
7 files changed
+9
-58
No files matched your search
@@ -4,9 +4,9 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { beforeApplicationIsLoadingInjectionToken } from "@k8slens/application";
|
||||
import initDefaultUpdateChannelInjectable from "../../../main/vars/default-update-channel/init.injectable";
|
||||
import userPreferencesPersistentStorageInjectable from "../common/storage.injectable";
|
||||
import userPreferencesStorageFileNameMigrationInjectable from "./file-name-migration.injectable";
|
||||
import { buildVersionInitializationInjectable } from "../../vars/build-version/main/init.injectable";
|
||||
|
||||
const loadUserPreferencesStorageInjectable = getInjectable({
|
||||
id: "load-user-preferences-storage",
|
||||
@@ -18,7 +18,7 @@ const loadUserPreferencesStorageInjectable = getInjectable({
|
||||
await userStoreFileNameMigration();
|
||||
storage.loadAndStartSyncing();
|
||||
},
|
||||
runAfter: initDefaultUpdateChannelInjectable,
|
||||
runAfter: buildVersionInitializationInjectable,
|
||||
}),
|
||||
injectionToken: beforeApplicationIsLoadingInjectionToken,
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { beforeFrameStartsSecondInjectionToken } from "../../../renderer/before-frame-starts/tokens";
|
||||
import initDefaultUpdateChannelInjectable from "../../../renderer/vars/default-update-channel/init.injectable";
|
||||
import { buildVersionInitializationInjectable } from "../../vars/build-version/renderer/init.injectable";
|
||||
import userPreferencesPersistentStorageInjectable from "../common/storage.injectable";
|
||||
|
||||
const loadUserPreferencesStorageInjectable = getInjectable({
|
||||
@@ -15,7 +15,7 @@ const loadUserPreferencesStorageInjectable = getInjectable({
|
||||
|
||||
return storage.loadAndStartSyncing();
|
||||
},
|
||||
runAfter: initDefaultUpdateChannelInjectable,
|
||||
runAfter: buildVersionInitializationInjectable,
|
||||
}),
|
||||
injectionToken: beforeFrameStartsSecondInjectionToken,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user