Bring back the remembering feature of the expanded/collapsed status of the tools. See issue 2648. Additionnally, correct a GUI bug of the B&W tool: the display wasn't initialized correctly when opening a new editor.
This commit is contained in:
@@ -416,14 +416,32 @@ void ToolPanelCoordinator::closeImage () {
|
||||
}
|
||||
}
|
||||
|
||||
void ToolPanelCoordinator::readOptions () {
|
||||
void ToolPanelCoordinator::closeAllTools() {
|
||||
|
||||
for (size_t i=0; i<options.tpOpen.size(); i++)
|
||||
if (i<expList.size())
|
||||
expList.at(i)->set_expanded (false);
|
||||
}
|
||||
|
||||
void ToolPanelCoordinator::openAllTools() {
|
||||
|
||||
for (size_t i=0; i<options.tpOpen.size(); i++)
|
||||
if (i<expList.size())
|
||||
expList.at(i)->set_expanded (true);
|
||||
}
|
||||
|
||||
void ToolPanelCoordinator::updateToolState() {
|
||||
|
||||
crop->readOptions ();
|
||||
for (size_t i=0; i<options.tpOpen.size(); i++)
|
||||
if (i<expList.size())
|
||||
expList.at(i)->set_expanded (options.tpOpen.at(i));
|
||||
}
|
||||
|
||||
void ToolPanelCoordinator::readOptions () {
|
||||
|
||||
crop->readOptions ();
|
||||
}
|
||||
|
||||
void ToolPanelCoordinator::writeOptions () {
|
||||
|
||||
crop->writeOptions ();
|
||||
|
Reference in New Issue
Block a user