mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-06-27 02:04:19 +02:00
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 <ivo97@centrum.cz> * Redesign of the settings window * changed sass to scss, fixed color of switches and disabled rounded corners Co-authored-by: Rick van Lieshout <info@rickvanlieshout.com> * - icon is set to new static path based on Arch/Debian - Name has changed to Tidal-Hifi Co-authored-by: Ivo Šmerek <ivo97@centrum.cz> * 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 <info@rickvanlieshout.com> Co-authored-by: Ivo Šmerek <ivo97@centrum.cz> Co-authored-by: Cukmekerb <cukmekerb@gmail.com> Co-authored-by: Brecht Yperman <brecht.yperman@trustbuilder.com>
This commit is contained in:
parent
562cfab196
commit
1f4f8b2e54
@ -123,8 +123,10 @@ function registerHttpProtocols() {
|
||||
protocol.registerHttpProtocol(PROTOCOL_PREFIX, (request, _callback) => {
|
||||
mainWindow.loadURL(`${tidalUrl}/${request.url.substring(PROTOCOL_PREFIX.length + 3)}`);
|
||||
});
|
||||
if (!app.isDefaultProtocolClient(PROTOCOL_PREFIX)) {
|
||||
app.setAsDefaultProtocolClient(PROTOCOL_PREFIX);
|
||||
}
|
||||
}
|
||||
|
||||
function addGlobalShortcuts() {
|
||||
Object.keys(mediaKeys).forEach((key) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user