Skip to content

Commit

Permalink
Merge pull request #472 from theQRL/testnet
Browse files Browse the repository at this point in the history
Ledger fixes and Node/Electron version bumps
  • Loading branch information
jplomas authored Jan 20, 2021
2 parents cc6e114 + 218759f commit 6aff118
Show file tree
Hide file tree
Showing 26 changed files with 15,243 additions and 15,197 deletions.
1 change: 1 addition & 0 deletions .electrify/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
60 changes: 36 additions & 24 deletions .electrify/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,48 @@
const { app, BrowserWindow, Menu } = require('electron');
const electrify = require('electrify-qrl')(__dirname);
const electrify = require('@theqrl/electrify-qrl')(__dirname);

let window;
let loading;

app.on('ready', function() {

var template = [{
label: "Application",
submenu: [
{ label: "About QRL Wallet", selector: "orderFrontStandardAboutPanel:" },
{ type: "separator" },
{ label: "Quit", accelerator: "Command+Q", click: function() { app.quit(); }}
]}, {
label: "Edit",
submenu: [
{ label: "Undo", accelerator: "CmdOrCtrl+Z", selector: "undo:" },
{ label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:" },
{ type: "separator" },
{ label: "Cut", accelerator: "CmdOrCtrl+X", selector: "cut:" },
{ label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:" },
{ label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:" },
{ label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" }
]}
];
Menu.setApplicationMenu(Menu.buildFromTemplate(template));

// Create the loading screen
loading = new BrowserWindow({
width: 850, height: 340,
nodeIntegration: false,
icon: __dirname + '/assets/qrl.png'
icon: __dirname + '/assets/qrl.png',
});
loading.webContents.on('will-navigate', ev => {
ev.preventDefault();
});
loading.removeMenu();
loading.setMenuBarVisibility(false);
loading.setMinimizable(false);
loading.setMaximizable(false);
loading.setResizable(false);
loading.webContents.on('contextmenu', () => {
menu.popup(window);
});
loading.loadURL(`file://${__dirname}/loading.html`)

// Electrify Start
Expand All @@ -32,8 +64,8 @@ app.on('ready', function() {
if (process.platform === 'darwin') {
app.setAboutPanelOptions({
applicationName: "QRL Wallet",
applicationVersion: "1.6.6",
version: "Electron 1.8.8",
applicationVersion: "1.7.0",
version: "Electron 10.1.7",
copyright: "Die QRL Stiftung, Zug Switzerland",
credits: "The QRL Developers"
});
Expand All @@ -48,26 +80,6 @@ app.on('ready', function() {
window.webContents.on('will-navigate', ev => {
ev.preventDefault()
});

var template = [{
label: "Application",
submenu: [
{ label: "About QRL Wallet", selector: "orderFrontStandardAboutPanel:" },
{ type: "separator" },
{ label: "Quit", accelerator: "Command+Q", click: function() { app.quit(); }}
]}, {
label: "Edit",
submenu: [
{ label: "Undo", accelerator: "CmdOrCtrl+Z", selector: "undo:" },
{ label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:" },
{ type: "separator" },
{ label: "Cut", accelerator: "CmdOrCtrl+X", selector: "cut:" },
{ label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:" },
{ label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:" },
{ label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" }
]}
];
Menu.setApplicationMenu(Menu.buildFromTemplate(template));
});
});

Expand Down
Loading

0 comments on commit 6aff118

Please sign in to comment.