mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
fix open animation
This commit is contained in:
parent
ee5daf47ce
commit
de725f42b0
@ -59,9 +59,11 @@ export default class StreamViewer extends React.Component {
|
|||||||
await this.loadWithProtocol[this.state.loadedProtocol]()
|
await this.loadWithProtocol[this.state.loadedProtocol]()
|
||||||
|
|
||||||
// make the interface a bit confortable for a video player
|
// make the interface a bit confortable for a video player
|
||||||
app.ThemeController.applyVariant("dark")
|
app.style.applyVariant("dark")
|
||||||
|
|
||||||
app.eventBus.emit("toogleCompactMode", true)
|
app.eventBus.emit("toogleCompactMode", true)
|
||||||
app.SidebarController.tooggleVisibility(false)
|
|
||||||
|
app.SidebarController.toggleVisibility(false)
|
||||||
app.HeaderController.toggleVisibility(false)
|
app.HeaderController.toggleVisibility(false)
|
||||||
|
|
||||||
// fetch user info in the background
|
// fetch user info in the background
|
||||||
@ -78,11 +80,12 @@ export default class StreamViewer extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount = () => {
|
componentWillUnmount = () => {
|
||||||
app.ThemeController.applyVariant(app.settings.get("themeVariant"))
|
app.style.applyVariant(app.settings.get("themeVariant"))
|
||||||
|
|
||||||
app.eventBus.emit("toogleCompactMode", false)
|
app.eventBus.emit("toogleCompactMode", false)
|
||||||
|
|
||||||
app.SidebarController.toggleVisibility(true)
|
app.SidebarController.toggleVisibility(true)
|
||||||
app.HeaderController.toggleVisibility(true)
|
app.HeaderController.toggleVisibility(true)
|
||||||
app.HeaderController.toggleVisibility(true)
|
|
||||||
|
|
||||||
if (this.timerCounterInterval) {
|
if (this.timerCounterInterval) {
|
||||||
this.timerCounterInterval = clearInterval(this.timerCounterInterval)
|
this.timerCounterInterval = clearInterval(this.timerCounterInterval)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user