mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-06 20:33:33 +01:00
refs #355 Fix streaming stop function
This commit is contained in:
parent
d6ee7b3578
commit
8ab2ac4ee3
@ -515,8 +515,10 @@ ipcMain.on('start-list-streaming', (event, obj) => {
|
||||
})
|
||||
|
||||
ipcMain.on('stop-list-streaming', (event, _) => {
|
||||
listStreaming.stop()
|
||||
listStreaming = null
|
||||
if (listStreaming !== null) {
|
||||
listStreaming.stop()
|
||||
listStreaming = null
|
||||
}
|
||||
})
|
||||
|
||||
let tagStreaming = null
|
||||
@ -549,9 +551,9 @@ ipcMain.on('start-tag-streaming', (event, obj) => {
|
||||
})
|
||||
})
|
||||
|
||||
ipcMain.on('stop-list-streaming', (event, _) => {
|
||||
listStreaming.stop()
|
||||
listStreaming = null
|
||||
ipcMain.on('stop-tag-streaming', (event, _) => {
|
||||
tagStreaming.stop()
|
||||
tagStreaming = null
|
||||
})
|
||||
|
||||
// sounds
|
||||
|
@ -49,7 +49,7 @@ export default {
|
||||
this.$store.commit('TimelineSpace/HeaderMenu/updateTitle', 'Hashtag')
|
||||
break
|
||||
case 'tag':
|
||||
this.$store.commit('TimelineSpace/HeaderMenu/updateTitle', this.$route.params.tag)
|
||||
this.$store.commit('TimelineSpace/HeaderMenu/updateTitle', `#${this.$route.params.tag}`)
|
||||
break
|
||||
case 'search':
|
||||
this.$store.commit('TimelineSpace/HeaderMenu/updateTitle', 'Search')
|
||||
|
@ -69,7 +69,6 @@ export default new Router({
|
||||
},
|
||||
{
|
||||
path: 'hashtag/',
|
||||
name: 'hashtag',
|
||||
component: require('@/components/TimelineSpace/Contents/Hashtag').default,
|
||||
children: [
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user