Skip to content

Commit

Permalink
App: add "Expanded" to DocumentObject.State
Browse files Browse the repository at this point in the history
Looks like it was impossible to figure out if tree item of object is
expanded or collapsed. Now, it can be queried by e.g. `"Expanded" in
App.ActiveDocument.Fusion.State`
  • Loading branch information
DeepSOIC authored and wwmayer committed Mar 26, 2017
1 parent 03f9d81 commit 2decd50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App/DocumentObjectPyImp.cpp
Expand Up @@ -162,6 +162,9 @@ Py::List DocumentObjectPy::getState(void) const
uptodate = false;
list.append(Py::String("Restore"));
}
if (object->testStatus(App::Expand)){
list.append(Py::String("Expanded"));
}
if (uptodate) {
list.append(Py::String("Up-to-date"));
}
Expand Down

0 comments on commit 2decd50

Please sign in to comment.