Removes low feedback toggle

This commit is contained in:
Tony Edwards 2023-12-08 07:15:14 +00:00
parent 78448894d2
commit 9a32396daa
8 changed files with 37 additions and 91 deletions

View file

@ -122,8 +122,7 @@ data class DeviceSettings(
var sleepTimerLength: Long, // Time in milliseconds
var disableSleepTimerFadeOut: Boolean,
var disableSleepTimerResetFeedback: Boolean,
var languageCode: String,
var enableLowFeedbackMode: Boolean
var languageCode: String
) {
companion object {
// Static method to get default device settings
@ -145,8 +144,7 @@ data class DeviceSettings(
autoSleepTimerAutoRewind = false,
autoSleepTimerAutoRewindTime = 300000L, // 5 minutes
disableSleepTimerFadeOut = false,
disableSleepTimerResetFeedback = false,
enableLowFeedbackMode = false
disableSleepTimerResetFeedback = false
)
}
}

View file

@ -152,9 +152,6 @@ export default {
},
localEpisodeId() {
return this.localEpisode?.id || null
},
isLowFeedback() {
return this.$store.state.deviceData.deviceSettings.enableLowFeedbackMode
}
},
methods: {
@ -213,9 +210,6 @@ export default {
console.log('Local folder', JSON.stringify(localFolder))
if (this.isLowFeedback) {
this.startDownload(localFolder)
} else {
var startDownloadMessage = `Start download for "${this.title}" to folder ${localFolder.name}?`
const { value } = await Dialog.confirm({
title: 'Confirm',
@ -224,8 +218,6 @@ export default {
if (value) {
this.startDownload(localFolder)
}
}
},
async startDownload(localFolder) {
var payload = {

View file

@ -158,9 +158,6 @@ export default {
},
podcast() {
return this.episode.podcast || {}
},
isLowFeedback() {
return this.$store.state.deviceData.deviceSettings.enableLowFeedbackMode
}
},
methods: {
@ -219,9 +216,6 @@ export default {
console.log('Local folder', JSON.stringify(localFolder))
if (this.isLowFeedback) {
this.startDownload(localFolder)
} else {
var startDownloadMessage = `Start download for "${this.title}" to folder ${localFolder.name}?`
const { value } = await Dialog.confirm({
title: 'Confirm',
@ -230,7 +224,6 @@ export default {
if (value) {
this.startDownload(localFolder)
}
}
},
async startDownload(localFolder) {
var payload = {

View file

@ -40,10 +40,6 @@ export default {
},
isIos() {
return this.$platform === 'ios'
},
isLowFeedback() {
console.log('isLowFeedback', this.$store.state.deviceData.deviceSettings.enableLowFeedbackMode)
return this.$store.state.deviceData.deviceSettings.enableLowFeedbackMode
}
},
methods: {
@ -60,9 +56,7 @@ export default {
if (!data.localLibraryItem) {
this.$toast.error(this.$strings.MessageItemDownloadCompleteFailedToCreate)
} else {
if (!this.isLowFeedback) {
this.$toast.success(`Item "${data.localLibraryItem.media.metadata.title}" download finished`)
}
this.$eventBus.$emit('new-local-library-item', data.localLibraryItem)
}

View file

@ -398,9 +398,6 @@ export default {
console.log('Local folder', JSON.stringify(localFolder))
if (this.isLowFeedback) {
this.startDownload(localFolder)
} else {
const startDownloadMessage = `Start download for "${this.title}" to folder ${localFolder.name}?`
const { value } = await Dialog.confirm({
title: 'Confirm',
@ -409,7 +406,6 @@ export default {
if (value) {
this.startDownload(localFolder)
}
}
},
async selectFolder() {
const folderObj = await AbsFileSystem.selectFolder({ mediaType: this.mediaType })

View file

@ -27,7 +27,7 @@
<p v-if="subtitle" class="text-gray-100 text-base">{{ subtitle }}</p>
</div>
<div v-if="hasLocal && !isLowFeedback" class="mx-1">
<div v-if="hasLocal" class="mx-1">
<div v-if="isLocalOnly" class="w-full rounded-md bg-warning/10 border border-warning p-4">
<p class="text-sm">{{ $strings.MessageMediaNotLinkedToServer }}</p>
</div>
@ -454,9 +454,6 @@ export default {
if (width * this.bookCoverAspectRatio > 325) width = 325 / this.bookCoverAspectRatio
return width
},
isLowFeedback() {
return this.$store.state.deviceData.deviceSettings.enableLowFeedbackMode
}
},
methods: {
@ -618,9 +615,6 @@ export default {
}
console.log('Local folder', JSON.stringify(localFolder))
if (this.isLowFeedback) {
this.startDownload(localFolder)
} else {
let startDownloadMessage = `Start download for "${this.title}" with ${this.numTracks} audio track${this.numTracks == 1 ? '' : 's'} to folder ${localFolder.name}?`
if (!this.isIos && this.showRead) {
if (this.numTracks > 0) {
@ -636,7 +630,6 @@ export default {
if (value) {
this.startDownload(localFolder)
}
}
},
async startDownload(localFolder = null) {
const payload = {

View file

@ -15,12 +15,6 @@
</div>
<p class="pl-4">{{ $strings.LabelLockOrientation }}</p>
</div>
<div class="flex items-center py-3" @click="toggleLowFeedbackMode">
<div class="w-10 flex justify-center">
<ui-toggle-switch v-model="settings.enableLowFeedbackMode" @input="saveSettings" />
</div>
<p class="pl-4">Low Feedback Mode</p>
</div>
<div class="py-3 flex items-center">
<p class="pr-4 w-36">{{ $strings.LabelHapticFeedback }}</p>
<div @click.stop="showHapticFeedbackOptions">
@ -164,8 +158,7 @@ export default {
disableSleepTimerResetFeedback: false,
autoSleepTimerAutoRewind: false,
autoSleepTimerAutoRewindTime: 300000, // 5 minutes
languageCode: 'en-us', // 5 minutes
enableLowFeedbackMode: false
languageCode: 'en-us' // 5 minutes
},
lockCurrentOrientation: false,
settingInfo: {
@ -194,10 +187,6 @@ export default {
message: this.$strings.LabelEnableMp3IndexSeekingHelp
name: 'Enable mp3 index seeking',
message: 'This setting should only be enabled if you have mp3 files that are not seeking correctly. Inaccurate seeking is most likely due to Variable birate (VBR) MP3 files. This setting will force index seeking, in which a time-to-byte mapping is built as the file is read. In some cases with large MP3 files there will be a delay when seeking towards the end of the file.'
},
enableLowFeedbackMode: {
name: 'Low feedback mode',
message: 'Danger. This setting will hide confirmation messages, error messages, notifications and feedback within the apps interface. With low feedback enabled, you WILL miss important messages. You WILL experience unexpected behavior. Proceed with caution.'
}
},
hapticFeedbackItems: [
@ -436,10 +425,6 @@ export default {
this.settings.jumpBackwardsTime = this.jumpBackwardsItems[next].value
this.saveSettings()
},
toggleLowFeedbackMode() {
this.settings.enableLowFeedbackMode = !this.settings.enableLowFeedbackMode
this.saveSettings()
},
async saveSettings() {
await this.$hapticsImpact()
const updatedDeviceData = await this.$db.updateDeviceSettings({ ...this.settings })
@ -476,8 +461,6 @@ export default {
this.settings.autoSleepTimerAutoRewindTime = !isNaN(deviceSettings.autoSleepTimerAutoRewindTime) ? deviceSettings.autoSleepTimerAutoRewindTime : 300000 // 5 minutes
this.settings.languageCode = deviceSettings.languageCode || 'en-us'
this.settings.enableLowFeedbackMode = !!deviceSettings.enableLowFeedbackMode
}
},
mounted() {

View file

@ -75,9 +75,6 @@ export const getters = {
},
getOrientationLockSetting: state => {
return state.deviceData?.deviceSettings?.lockOrientation
},
getLowFeedbackModeSetting: state => {
return state.deviceData?.deviceSettings?.enableLowFeebackMode
}
}