Minor fixes.
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -67,7 +67,7 @@ var menu = Menu.buildFromTemplate([
|
||||
// Other code removed for brevity
|
||||
},
|
||||
{
|
||||
label: "Help",
|
||||
label: isDev ? "DEVELOPMENT -- HELP" : "Help",
|
||||
submenu: [
|
||||
{
|
||||
label: "Rescue",
|
||||
|
||||
Reference in New Issue
Block a user