1
0
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:
AkiraFukushima 2018-06-01 13:09:42 +09:00
parent d6ee7b3578
commit 8ab2ac4ee3
3 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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')

View File

@ -69,7 +69,6 @@ export default new Router({
},
{
path: 'hashtag/',
name: 'hashtag',
component: require('@/components/TimelineSpace/Contents/Hashtag').default,
children: [
{