mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +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 = () => {
|
onTransitionStart = () => {
|
||||||
progressBar.start()
|
progressBar.start()
|
||||||
|
|
||||||
this.setState({ isOnTransition: true })
|
if (!app.settings.get("reduceAnimations")) {
|
||||||
|
this.setState({ isOnTransition: true })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onTransitionFinish = () => {
|
onTransitionFinish = () => {
|
||||||
progressBar.done()
|
progressBar.done()
|
||||||
|
|
||||||
this.setState({ isOnTransition: false })
|
if (!app.settings.get("reduceAnimations")) {
|
||||||
|
this.setState({ isOnTransition: false })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidCatch(info, stack) {
|
componentDidCatch(info, stack) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user