fix shift times not works when editing

This commit is contained in:
Vito0912 2025-04-27 19:34:12 +02:00
parent a2dc76e190
commit 38957d4f32
No known key found for this signature in database
GPG Key ID: 29A3D509FE70B237

View File

@ -341,8 +341,8 @@ export default {
return
}
if (this.newChapters[0].end + amount <= 0) {
this.$toast.error('Invalid shift amount. First chapter would have zero or negative length.')
if (this.newChapters[1].start + amount <= 0) {
this.$toast.error('Invalid shift amount. The first chapter would have zero or negative length and would be overwritten by the second chapter. Increase the start duration of second chapter. ')
return
}