Fixed crash

This commit is contained in:
Vito0912 2025-04-27 19:51:56 +02:00
parent 65aec6a099
commit a1074e69ac
No known key found for this signature in database
GPG Key ID: 29A3D509FE70B237

View File

@ -337,12 +337,12 @@ export default {
const lastChapter = this.newChapters[this.newChapters.length - 1]
if (lastChapter.start + amount > this.mediaDurationRounded) {
this.$toast.error($strings.ToastInvalidShiftAmountLast)
this.$toast.error(this.$strings.ToastInvalidShiftAmountLast)
return
}
if (this.newChapters[1].start + amount <= 0) {
this.$toast.error($strings.ToastInvalidShiftAmountStart)
this.$toast.error(this.$strings.ToastInvalidShiftAmountStart)
return
}