Skip to content

Commit

Permalink
fix(Version): Removed version dialog and moved version to title (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndickerson authored Jun 12, 2018
1 parent 53f22b9 commit 7c59c21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
22 changes: 1 addition & 21 deletions main-process/menu.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { app, dialog, shell } from 'electron';
import { glob } from 'glob';
import { app, shell } from 'electron';
import * as path from 'path';

export let menuTemplate: Electron.MenuItemConstructorOptions[] = [
Expand Down Expand Up @@ -91,25 +90,6 @@ export let menuTemplate: Electron.MenuItemConstructorOptions[] = [
label: 'Help',
role: 'help',
submenu: [{
label: 'About',
click: (item, focusedWindow) => {
if (focusedWindow) {
const dataloaderDir: string = path.join(app.getAppPath(), 'dataloader').replace('app.asar', 'app.asar.unpacked');
const jarFiles: string[] = glob.sync('dataloader-*.jar', { cwd: dataloaderDir });
let version: string = jarFiles.length ? path.basename(jarFiles[0], '.jar').split('-')[1] : 'missing';
const options: Electron.MessageBoxOptions = {
type: 'info',
title: 'About Data Loader',
buttons: ['Close'],
message: `Data Loader Version: ${version}`,
};
dialog.showMessageBox(focusedWindow, options, () => {
});
}
},
}, {
type: 'separator',
}, {
label: 'Wiki',
click: () => {
shell.openExternal('http://github.com/bullhorn/dataloader/wiki');
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bullhorn DataLoader</title>
<title>Bullhorn Data Loader v0.3.3 (CLI v3.8.0)</title>
<base href="/">

<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down

0 comments on commit 7c59c21

Please sign in to comment.