mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-30 22:38:54 +00:00
feat: changing tabs will close the rss
This commit is contained in:
parent
49e2ea5c58
commit
a95f3507f5
2 changed files with 7 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
import { media } from '../views/Player/MediaHandler.svelte'
|
||||
import { click } from '@/modules/click.js'
|
||||
import IPC from '@/modules/ipc.js'
|
||||
import { rss } from '@/views/TorrentSearch/TorrentModal.svelte'
|
||||
const view = getContext('view')
|
||||
export let page
|
||||
const links = [
|
||||
|
|
@ -19,6 +20,7 @@
|
|||
click: () => {
|
||||
page = 'schedule'
|
||||
$view = null
|
||||
$rss = null
|
||||
|
||||
},
|
||||
page: 'schedule',
|
||||
|
|
@ -32,6 +34,7 @@
|
|||
return
|
||||
}
|
||||
if ($media) $view = $media.media
|
||||
$rss = null
|
||||
},
|
||||
icon: 'queue_music',
|
||||
text: 'Now Playing'
|
||||
|
|
@ -40,6 +43,7 @@
|
|||
click: () => {
|
||||
page = 'watchtogether'
|
||||
$view = null
|
||||
$rss = null
|
||||
},
|
||||
page: 'watchtogether',
|
||||
icon: 'groups',
|
||||
|
|
@ -57,6 +61,7 @@
|
|||
click: () => {
|
||||
page = 'settings'
|
||||
$view = null
|
||||
$rss = null
|
||||
},
|
||||
page: 'settings',
|
||||
icon: 'settings',
|
||||
|
|
@ -66,6 +71,7 @@
|
|||
]
|
||||
function close () {
|
||||
$view = null
|
||||
$rss = null
|
||||
page = 'home'
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { findInCurrent } from '../Player/MediaHandler.svelte'
|
||||
import { writable } from 'simple-store-svelte'
|
||||
|
||||
const rss = writable(null)
|
||||
export const rss = writable(null)
|
||||
|
||||
export function playAnime (media, episode = 1, force) {
|
||||
episode = Number(episode)
|
||||
|
|
|
|||
Loading…
Reference in a new issue