Skip to content

Commit

Permalink
add option to hide license on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdadams committed Jul 13, 2023
1 parent 73e2de4 commit 996de44
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions config.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions contextmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ function buildContextMenu() {
{
type: 'separator'
},
{
label: 'Show License on Startup',
type: 'checkbox',
checked: config.get('showLicense'),
click: function () {
config.set('showLicense', !config.get('showLicense'));
}
},
{
label: 'Request Help/Support',
click: function() {
Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ const createMainWindow = async () => {
});

global.win.on('ready-to-show', () => {
global.win.show();
if (config.get('showLicense')) {
global.win.show();
}
});

global.win.on('closed', () => {
Expand Down Expand Up @@ -110,7 +112,7 @@ app.on('second-instance', () => {

app.on('window-all-closed', () => {
if (!is.macos) {
app.quit();
//app.quit();
}
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "midi-relay",
"productName": "midi-relay",
"version": "3.0.6",
"version": "3.0.7",
"description": "Listens for HTTP requests with JSON payload and relays MIDI/MSC commands on local ports.",
"license": "MIT",
"repository": "josephdadams/midi-relay",
Expand Down

0 comments on commit 996de44

Please sign in to comment.