Add Update Cider Branch selection

This commit is contained in:
GamingLiamStudios 2022-02-07 21:20:49 +11:00
parent 7b9a0c941f
commit b19b0d4e39
No known key found for this signature in database
GPG key ID: 3650DE4EAFF62ADD
3 changed files with 40 additions and 16 deletions

View file

@ -122,7 +122,6 @@
"term.menu": "Menu", "term.menu": "Menu",
"term.check": "Check", "term.check": "Check",
"term.aboutArtist": "About {{artistName}}", // e.g. 'About Doja Cat' "term.aboutArtist": "About {{artistName}}", // e.g. 'About Doja Cat'
"term.updateCider": "Update Cider",
"term.topResult": "Top Result", // Search Results "term.topResult": "Top Result", // Search Results
"term.sharedPlaylists": "Shared Playlists", // Search Results "term.sharedPlaylists": "Shared Playlists", // Search Results
"term.people": "People", // Search Results "term.people": "People", // Search Results
@ -299,6 +298,11 @@
"settings.option.experimental.close_button_hide": "Close Button Should Hide the Application", "settings.option.experimental.close_button_hide": "Close Button Should Hide the Application",
"settings.option.experimental.copy_log": "Copy logs to clipboard", "settings.option.experimental.copy_log": "Copy logs to clipboard",
"settings.option.experimental.inline_playlists": "Inline Playlists and Albums", "settings.option.experimental.inline_playlists": "Inline Playlists and Albums",
"settings.option.experimental.updateCider": "Update Cider", // Button. Refer to term.check for the check button
"settings.option.experimental.updateCider.branch": "Cider Update Branch", // Dropdown
"settings.option.experimental.updateCider.branch.description": "Select the branch to update Cider to",
"settings.option.experimental.updateCider.branch.main": "Stable",
"settings.option.experimental.updateCider.branch.develop": "Development",
// Refer to term.disabled & term.enabled // Refer to term.disabled & term.enabled
// Spatialization Menu // Spatialization Menu
"spatial.notTurnedOn": "Audio Spatialization is disabled. To use, please enable it first.", "spatial.notTurnedOn": "Audio Spatialization is disabled. To use, please enable it first.",

View file

@ -11,7 +11,8 @@ export class Store {
"discord_rpc": 1, // 0 = disabled, 1 = enabled as Cider, 2 = enabled as Apple Music "discord_rpc": 1, // 0 = disabled, 1 = enabled as Cider, 2 = enabled as Apple Music
"discord_rpc_clear_on_pause": true, "discord_rpc_clear_on_pause": true,
"language": "en_US", // electron.app.getLocale().replace('-', '_') this can be used in future "language": "en_US", // electron.app.getLocale().replace('-', '_') this can be used in future
"playbackNotifications": true "playbackNotifications": true,
"update_branch": "main"
}, },
"home": { "home": {
"followedArtists": [], "followedArtists": [],
@ -60,10 +61,10 @@ export class Store {
"equalizer": { "equalizer": {
'preset': "default", 'preset': "default",
'frequencies': [32, 63, 125, 250, 500, 1000, 2000, 4000, 8000, 16000], 'frequencies': [32, 63, 125, 250, 500, 1000, 2000, 4000, 8000, 16000],
'gain': [0,0,0,0,0,0,0,0,0,0], 'gain': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
'Q' : [1,1,1,1,1,1,1,1,1,1], 'Q': [1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
'mix' : 1, 'mix': 1,
'vibrantBass' : 0, 'vibrantBass': 0,
'presets': [], 'presets': [],
'userGenerated': false 'userGenerated': false
}, },

View file

@ -655,7 +655,7 @@
</div> </div>
<div class="md-option-line"> <div class="md-option-line">
<div class="md-option-segment"> <div class="md-option-segment">
{{$root.getLz('term.updateCider')}} {{$root.getLz('settings.option.experimental.updateCider')}}
</div> </div>
<div class="md-option-segment md-option-segment_auto"> <div class="md-option-segment md-option-segment_auto">
<button class="md-btn" @click="app.checkForUpdate()"> <button class="md-btn" @click="app.checkForUpdate()">
@ -663,6 +663,22 @@
</button> </button>
</div> </div>
</div> </div>
<div class="md-option-line">
<div class="md-option-segment">
{{$root.getLz('settings.option.experimental.updateCider.branch')}}<br>
<small>({{$root.getLz('settings.option.experimental.updateCider.branch.description')}})</small>
</div>
<div class="md-option-segment md-option-segment_auto">
<select class="md-select" style="width:180px;" v-model="app.cfg.general.update_branch">
<option value="main">
{{$root.getLz('settings.option.experimental.updateCider.branch.main')}}
</option>
<option value="develop">
{{$root.getLz('settings.option.experimental.updateCider.branch.develop')}}
</option>
</select>
</div>
</div>
<div class="md-option-line"> <div class="md-option-line">
<div class="md-option-segment"> <div class="md-option-segment">
{{$root.getLz('settings.option.experimental.copy_log')}} {{$root.getLz('settings.option.experimental.copy_log')}}
@ -807,15 +823,17 @@
ciderPPE: function () { ciderPPE: function () {
if (app.cfg.advanced.ciderPPE) { if (app.cfg.advanced.ciderPPE) {
if (app.cfg.audio.spatial) { if (app.cfg.audio.spatial) {
app.cfg.advanced.ciderPPE = false; app.cfg.advanced.ciderPPE = false;
notyf.error("CAP is not compatible with Spatialization. Please disable Spatialization to continue.") notyf.error("CAP is not compatible with Spatialization. Please disable Spatialization to continue.")
} }
}}, }
},
toggleSpatial: function () { toggleSpatial: function () {
if (app.cfg.audio.spatial) { if (app.cfg.audio.spatial) {
if (!app.cfg.advanced.ciderPPE) { if (!app.cfg.advanced.ciderPPE) {
CiderAudio.spatialOn()} CiderAudio.spatialOn()
else { }
else {
CiderAudio.spatialOff() CiderAudio.spatialOff()
app.cfg.audio.spatial = false; app.cfg.audio.spatial = false;
notyf.error("Spatialization is not compatible with CAP. Please disable CAP to continue.") notyf.error("Spatialization is not compatible with CAP. Please disable CAP to continue.")
@ -823,10 +841,11 @@
} else { } else {
CiderAudio.spatialOff() CiderAudio.spatialOff()
} }
}, },
changeAudioQuality: function () {1 changeAudioQuality: function () {
app.mk.bitrate = MusicKit.PlaybackBitrate[app.cfg.audio.quality]; 1
app.mk.bitrate = MusicKit.PlaybackBitrate[app.cfg.audio.quality];
}, },
toggleUserInfo: function () { toggleUserInfo: function () {
app.chrome.hideUserInfo = !app.cfg.visual.showuserinfo app.chrome.hideUserInfo = !app.cfg.visual.showuserinfo