Skip to content

Commit 7245b03

Browse files
committed
fix: lmdb initilization errors in slow machines
1 parent 7dc9d78 commit 7245b03

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"buildtype": "dev",
3636
"bugsnagEnv": "development"
3737
},
38-
"name": "Phoenix",
38+
"name": "Phoenix Code",
3939
"version": "3.4.3-0",
4040
"apiVersion": "3.4.3",
4141
"homepage": "https://core.ai",

src/nls/root/strings.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,8 @@ define({
566566
"ABOUT_TEXT_LINE6": "Lots of people (but we're having trouble loading that data right now).",
567567
"ABOUT_TEXT_MDN_DOCS": "MDN Docs and the MDN graphical logo are licensed under a Creative Commons Attribution license, <a href='{MDN_DOCS_LICENSE}'>CC-BY-SA 2.5 Unported</a>.",
568568
"UPDATE_NOTIFICATION_TOOLTIP": "There's a new build of {APP_NAME} available! Click here for details.",
569-
"UPDATE_NOT_AVAILABLE_TITLE": "No Updates Available",
569+
"UPDATE_NOT_AVAILABLE_TITLE": "{APP_NAME} is up to date",
570+
"UPDATE_UP_TO_DATE": "Your version of {APP_NAME} is the latest and greatest!",
570571
"UPDATE_AVAILABLE_TITLE": "Update Available",
571572
"UPDATE_READY_RESTART_TITLE": "Update Ready: Restart Required",
572573
"UPDATE_READY_RESTART_MESSAGE": "Close all {APP_NAME} app windows and restart the app to launch the updated version.",
@@ -576,11 +577,10 @@ define({
576577
"UPDATE_INSTALLING_MESSAGE": "Update Installation in Progress: {APP_NAME} is currently installing the latest updates. The application will automatically close once the installation is complete.",
577578
"UPDATE_FAILED_MESSAGE": "Please close all {APP_NAME} app windows and reopen the application to attempt the update again.",
578579
"UPDATE_FAILED_VISIT_SITE_MESSAGE": "To retry, please exit all instances of {APP_NAME} and restart the application. <br>You will be directed to our download page shortly, where you can manually download the latest version.",
579-
"UPDATE_UP_TO_DATE": "{APP_NAME} is up to date.",
580580
"UPDATE_MESSAGE": "Hey, there's a new build of {APP_NAME} available. Here are some of the new features:",
581581
"GET_IT_NOW": "Get it now!",
582582
"UPDATE_LATER": "Remind Me Later",
583-
"UPDATE_DONE": "{APP_NAME} Updated",
583+
"UPDATE_DONE": "Restart to Update {APP_NAME}",
584584
"UPDATE_RESTART": "Restart to apply updates",
585585
"UPDATE_RESTART_INSTALL": "Restart to install updates",
586586
"UPDATE_DOWNLOADING": "Downloading Installer",

src/storage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ import {set, entries, createStore} from './thirdparty/idb-keyval.js';
105105
const STORAGE_NODE_CONNECTOR_ID = "ph_storage";
106106
storageNodeConnector = window.PhNodeEngine.createNodeConnector(
107107
STORAGE_NODE_CONNECTOR_ID, nodeStoragePhoenixApis);
108-
storageNodeConnector.execPeer("openDB", window._tauriBootVars.appLocalDir);
108+
window._tauriBootVarsPromise.then(()=>{
109+
storageNodeConnector.execPeer("openDB", window._tauriBootVars.appLocalDir);
110+
});
109111
if(Phoenix.isTestWindow) {
110112
window.storageNodeConnector = storageNodeConnector;
111113
}

0 commit comments

Comments
 (0)