From eddce3f729b4d3f0d78edfaabc793edf86fcf394 Mon Sep 17 00:00:00 2001 From: Matthew James Date: Tue, 24 Jan 2017 17:49:17 +0000 Subject: [PATCH] Pre-release v1.0.40 Beta Fixes Fixes Sing! disappearance after clicking other nav items Removed dev tools opening on start up Fixed dev tools shortcut --- windows/spotify/Sing!/sing.js | 8 +++----- windows/spotify/shortcuts.js | 2 +- windows/spotify/window.js | 1 - 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/windows/spotify/Sing!/sing.js b/windows/spotify/Sing!/sing.js index 6ba2f25..f09fca7 100755 --- a/windows/spotify/Sing!/sing.js +++ b/windows/spotify/Sing!/sing.js @@ -64,11 +64,9 @@ const Sing = function(){ $('#sing-sync').click(); }); $('a[id*=\'nav-\']').not('#nav-sing').click(function(){ - $('#sing-ui').fadeOut(function() { - var v = $(this).is(':visible'); - $('#nav-sing').toggleClass('active', v); - MAIN.sendFunc({v:v}, () => sing._isUIShowing = v); - }); + $('#sing-ui').toggleClass('active', false); + $('#nav-sing').toggleClass('active', false); + MAIN.sendFunc({v: false}, () => sing._isUIShowing = v); }); } }); diff --git a/windows/spotify/shortcuts.js b/windows/spotify/shortcuts.js index 7836b58..fed6b6a 100644 --- a/windows/spotify/shortcuts.js +++ b/windows/spotify/shortcuts.js @@ -23,7 +23,7 @@ module.exports = { if (app.spotify.isDevToolsOpened()){ app.spotify.closeDevTools(); } else { - app.spotify.closeDevTools() + app.spotify.openDevTools() } } bind('CommandOrControl+Shift+I', showdevtools); diff --git a/windows/spotify/window.js b/windows/spotify/window.js index e8110dc..95df5b6 100755 --- a/windows/spotify/window.js +++ b/windows/spotify/window.js @@ -30,7 +30,6 @@ class Spotify extends BrowserWindow{ } }); this.hasRadio = true; - this.openDevTools(); this.on('page-title-updated', (event) => event.preventDefault()); this.on('closed', () => { app.quit(); process.exit(0) }); this.setMenu(null);