Skip to content

Commit

Permalink
KKERTI fix legacy profile viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
kkerti committed Jan 23, 2023
1 parent 3b88237 commit f7e8912
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/renderer/main/panels/profiles/Profiles.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@
moveOld();
});
profileListRefresh.subscribe((store) => {
profileListRefresh.subscribe(async (store) => {
if (PROFILE_PATH !== undefined && PROFILE_PATH !== "") {
loadFromDirectory();
await loadFromDirectory();
}
});
async function moveOld() {
if (PROFILE_PATH !== undefined && PROFILE_PATH !== "") {
await window.electron.configs.moveOldConfigs(PROFILE_PATH, "profiles");
loadFromDirectory();
await loadFromDirectory();
}
}
Expand All @@ -96,7 +96,7 @@
user
);
loadFromDirectory();
await loadFromDirectory();
logger.set({
type: "success",
Expand Down Expand Up @@ -189,7 +189,6 @@
if (currentModule.id.substr(0, 4) == profile.type) {
runtime.whole_page_overwrite(profile.configs);
console.log;
window.electron.analytics.google("profile-library", {
value: "load success",
Expand Down

0 comments on commit f7e8912

Please sign in to comment.