HomePhabricator

Toolbar: fix icon switch during state change

Authored by JackDanielZ on Nov 8 2016, 9:39 PM.

Description

Toolbar: fix icon switch during state change

When many states are set on an item, the icon is deleted when the state
is changed. This shouldn't be as it leads to an unstable state whose
icon is still considered as existing and errors displayed on the screen.

We need to check that the icon is not used inside any state to permit its
deletion. Otherwise we should just hide it.

@fix

Details

Committed
JackDanielZNov 8 2016, 9:42 PM
Parents
rEFL7957041d845a: Toolbar: fix retrieval of previous state
Branches
Unknown
Tags
Unknown