Collapse all tools on first start (fixes #4776)

I had to remove the `isVisible` check in `MyExpander::set_expanded()`
because it would trigger in Wavelet and Retinex for unknown reasons.

One inner expander in CIECAM isn't covered by the tool states, and the
way they are distributed to Wavelet and Retinex won't allow for further
tool states in those tools. We should consider to move the tool states
for sub-tools (like Wavelet, Retinex, and CIECAM) to seperate keys in
the `options` file.
This commit is contained in:
Flössie
2020-02-12 09:04:55 +01:00
parent 40018b1e9a
commit 1c0033f798
6 changed files with 133 additions and 107 deletions

View File

@@ -826,12 +826,6 @@ void MyExpander::set_expanded( bool expanded )
return;
}
bool isVisible = expBox->is_visible();
if (isVisible == expanded) {
return;
}
if (!useEnabled) {
if (expanded ) {
statusImage->set(openedImage->get_surface());