Minor fixes.

This commit is contained in:
Patrick Fic
2020-11-19 10:38:06 -08:00
parent 6ecdcefe92
commit 457b1d9f42
6 changed files with 12 additions and 13 deletions

View File

@@ -20,8 +20,8 @@ Nucleus.onError = (type, err) => {
};
ipcMain.on(ipcTypes.app.toMain.setUserName, (event, userName) => {
Nucleus.appStarted();
Nucleus.setUserId(userName);
Nucleus.appStarted();
});
ipcMain.on(ipcTypes.app.toMain.track, (e, args) => {

View File

@@ -51,8 +51,8 @@ async function DecodeEstimate(filePath, includeFilePathInReturnJob = false) {
const ad2 = await DecodeAd2File(extensionlessFilePath);
if (job.OWNR_FN === "") job.OWNR_FN = ad2.CLMT_FN;
if (job.OWNR_LN === "") job.OWNR_LN = ad2.CLMT_LN;
if (job.OWNR_FN === "" || !job.OWNR_FN) job.OWNR_FN = ad2.CLMT_FN;
if (job.OWNR_LN === "" || !job.OWNR_LN) job.OWNR_LN = ad2.CLMT_LN;
const accepted_ins_co = store.get("accepted_ins_co");

View File

@@ -70,7 +70,7 @@ async function StartWatcher() {
.on("error", function (error) {
log.error("Error in Watcher", error);
const b = BrowserWindow.getFocusedWindow();
b.webContents.send(ipcTypes.fileWatcher.toRenderer.error, error);
b.webContents.send(ipcTypes.default.fileWatcher.toRenderer.error, error);
Nucleus.track("WATCHER_ERROR", error);
})
.on("ready", onWatcherReady)

View File

@@ -67,7 +67,7 @@ var menu = Menu.buildFromTemplate([
// Other code removed for brevity
},
{
label: "Help",
label: isDev ? "DEVELOPMENT -- HELP" : "Help",
submenu: [
{
label: "Rescue",