mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
not update isOnTransition
when reduceAnimations
is enabled
This commit is contained in:
parent
7b7e0445ea
commit
06fe19f684
@ -104,13 +104,17 @@ export default class Layout extends React.Component {
|
||||
onTransitionStart = () => {
|
||||
progressBar.start()
|
||||
|
||||
this.setState({ isOnTransition: true })
|
||||
if (!app.settings.get("reduceAnimations")) {
|
||||
this.setState({ isOnTransition: true })
|
||||
}
|
||||
}
|
||||
|
||||
onTransitionFinish = () => {
|
||||
progressBar.done()
|
||||
|
||||
this.setState({ isOnTransition: false })
|
||||
if (!app.settings.get("reduceAnimations")) {
|
||||
this.setState({ isOnTransition: false })
|
||||
}
|
||||
}
|
||||
|
||||
componentDidCatch(info, stack) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user