From bf260b14e0f4b7fe07f9ce23f134b46f9f57d044 Mon Sep 17 00:00:00 2001 From: Rick van Lieshout Date: Mon, 24 Oct 2022 11:38:00 +0200 Subject: [PATCH] https://github.com/Mastermindzh/tidal-hifi/pull/178 (#180) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update configuration of the desktop file (#165) * - Changed the category of the desktop file to AudioVideo - Changed desktop file name to "TIDAL Hi-Fi" * Redesign of the settings window (#168) * Pr dest (#166) * Update configuration of the desktop file (#165) * - Changed the category of the desktop file to AudioVideo - Changed desktop file name to "TIDAL Hi-Fi" Co-authored-by: Ivo Šmerek * Redesign of the settings window * changed sass to scss, fixed color of switches and disabled rounded corners Co-authored-by: Rick van Lieshout * - icon is set to new static path based on Arch/Debian - Name has changed to Tidal-Hifi * Check if app is default protocol client before setting (#178) * Release of settings window and desktop file fixes (#169) * Update configuration of the desktop file (#165) * - Changed the category of the desktop file to AudioVideo - Changed desktop file name to "TIDAL Hi-Fi" * Redesign of the settings window (#168) * Pr dest (#166) * Update configuration of the desktop file (#165) * - Changed the category of the desktop file to AudioVideo - Changed desktop file name to "TIDAL Hi-Fi" Co-authored-by: Ivo Šmerek * Redesign of the settings window * changed sass to scss, fixed color of switches and disabled rounded corners Co-authored-by: Rick van Lieshout * - icon is set to new static path based on Arch/Debian - Name has changed to Tidal-Hifi Co-authored-by: Ivo Šmerek * Disable background throttling (#171) * disable background throttling for consistent setInterval * add disable throttle as config option * 4.3.0 * Check if app is default protocol client before setting Co-authored-by: Rick van Lieshout Co-authored-by: Ivo Šmerek Co-authored-by: Cukmekerb Co-authored-by: Brecht Yperman * docs Co-authored-by: Ivo Šmerek Co-authored-by: Brecht Yperman Co-authored-by: Cukmekerb Co-authored-by: Brecht Yperman --- CHANGELOG.md | 4 ++-- package-lock.json | 6 +++--- package.json | 4 ++-- src/main.js | 4 +++- src/pages/settings/settings.html | 2 +- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b475f8..8e59ee1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## 4.3.0 +## 4.3.1 -- Added a setting to disable background throttling ([docs](https://www.electronjs.org/docs/latest/api/browser-window)) +- fix: App always requests a default-url-handler-scheme change on start ## 4.2.0 diff --git a/package-lock.json b/package-lock.json index 639b82b..3b8e885 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "tidal-hifi", - "version": "4.3.0", + "version": "4.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "tidal-hifi", - "version": "4.3.0", + "version": "4.3.1", "license": "MIT", "dependencies": { "@electron/remote": "^2.0.8", @@ -11386,4 +11386,4 @@ } } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 14ca2a7..eddca5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tidal-hifi", - "version": "4.3.0", + "version": "4.3.1", "description": "Tidal on Electron with widevine(hifi) support", "main": "src/main.js", "scripts": { @@ -50,4 +50,4 @@ "sass-lint-auto-fix": "^0.21.2" }, "prettier": "@mastermindzh/prettier-config" -} +} \ No newline at end of file diff --git a/src/main.js b/src/main.js index abbe7db..234c105 100644 --- a/src/main.js +++ b/src/main.js @@ -123,7 +123,9 @@ function registerHttpProtocols() { protocol.registerHttpProtocol(PROTOCOL_PREFIX, (request, _callback) => { mainWindow.loadURL(`${tidalUrl}/${request.url.substring(PROTOCOL_PREFIX.length + 3)}`); }); - app.setAsDefaultProtocolClient(PROTOCOL_PREFIX); + if (!app.isDefaultProtocolClient(PROTOCOL_PREFIX)) { + app.setAsDefaultProtocolClient(PROTOCOL_PREFIX); + } } function addGlobalShortcuts() { diff --git a/src/pages/settings/settings.html b/src/pages/settings/settings.html index 6f638a2..6ec8991 100644 --- a/src/pages/settings/settings.html +++ b/src/pages/settings/settings.html @@ -255,4 +255,4 @@ - + \ No newline at end of file