mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-19 16:22:04 +00:00
fix: dont autoplay next in w2g
This commit is contained in:
parent
e92341ef9a
commit
1b176b8ed5
3 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Miru",
|
||||
"version": "4.4.7",
|
||||
"version": "4.4.8",
|
||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||
"main": "build/main.js",
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
import Seekbar from 'perfect-seekbar'
|
||||
import { click } from '@/modules/click.js'
|
||||
|
||||
import { w2gEmitter } from '../WatchTogether/WatchTogether.svelte'
|
||||
import { w2gEmitter, state } from '../WatchTogether/WatchTogether.svelte'
|
||||
import Keybinds, { loadWithDefaults, condition } from 'svelte-keybinds'
|
||||
|
||||
const emit = createEventDispatcher()
|
||||
|
|
@ -228,7 +228,7 @@
|
|||
}
|
||||
})
|
||||
function tryPlayNext () {
|
||||
if (set.playerAutoplay) playNext()
|
||||
if (set.playerAutoplay && !state.value) playNext()
|
||||
}
|
||||
function playNext () {
|
||||
if (hasNext) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<script context='module'>
|
||||
import { writable, get } from 'svelte/store'
|
||||
import { writable, get } from 'simple-store-svelte'
|
||||
import { alID } from '@/modules/anilist.js'
|
||||
import { add, client } from '@/modules/torrent.js'
|
||||
import { generateRandomHexCode } from '@/modules/util.js'
|
||||
|
|
|
|||
Loading…
Reference in a new issue