Skip to content

Commit

Permalink
Remove disabled context menu options
Browse files Browse the repository at this point in the history
Version to 1.0.8
  • Loading branch information
tma02 committed Jul 5, 2017
1 parent b5aaaa2 commit 41f6817
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const contextMenu = Menu.buildFromTemplate([
{ label: 'About Baritone', click: function() { openAbout(); } },
/*{ label: 'Preferences', click: function() { openSettings(); } },*/
{ type: 'separator' },
{ label: 'Preferences', enabled: false },
{ label: 'Launch on Login', type: 'checkbox', checked: false, click: function(item) {
appLauncher.isEnabled().then(function(enabled) {
if (enabled) {
Expand All @@ -49,21 +48,21 @@ const contextMenu = Menu.buildFromTemplate([
item.checked = settings.showTrackTitle;
mb.window.webContents.send('settings', settings);
}, enabled: true },
{ label: 'Smaller Album Art', type: 'checkbox', checked: false, click: function(item) {
/*{ label: 'Smaller Album Art', type: 'checkbox', checked: false, click: function(item) {
settings.smallAlbumArt = !settings.smallAlbumArt;
item.checked = settings.smallAlbumArt;
mb.window.webContents.send('settings', settings);
}, enabled: false },
}, enabled: false },*/
{ type: 'separator' },
{ label: 'Quit Baritone', click: function() { mb.app.quit(); } }
]);

appLauncher.isEnabled().then(function(enabled) {
contextMenu.items[3].checked = enabled;
contextMenu.items[2].checked = enabled;
});

contextMenu.items[4].checked = settings.showTrackTitle;
contextMenu.items[5].checked = settings.smallAlbumArt;
contextMenu.items[3].checked = settings.showTrackTitle;
//contextMenu.items[4].checked = settings.smallAlbumArt;

function openSettings() {
settingsWindow = new BrowserWindow({width: 400, height: 500});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Baritone",
"version": "1.0.7",
"version": "1.0.8",
"description": "A Spotify controller that lives in the menubar.",
"main": "index.js",
"dependencies": {
Expand Down

0 comments on commit 41f6817

Please sign in to comment.