| 1873 | } |
| 1874 | |
| 1875 | void ViewProviderAssembly::updateTaskPanel(bool show) |
| 1876 | { |
| 1877 | Gui::TaskView::TaskView* taskView = Gui::Control().taskPanel(); |
| 1878 | if (!taskView) { |
| 1879 | return; |
| 1880 | } |
| 1881 | |
| 1882 | if (show && !taskSolver) { |
| 1883 | taskSolver = new TaskAssemblyMessages(this); |
| 1884 | taskView->addContextualPanel(taskSolver, this->getObject()->getDocument()); |
| 1885 | UpdateSolverInformation(); |
| 1886 | } |
| 1887 | else if (!show && taskSolver) { |
| 1888 | taskView->removeContextualPanel(taskSolver, this->getObject()->getDocument()); |
| 1889 | taskSolver = nullptr; |
| 1890 | } |
| 1891 | } |
nothing calls this directly
no test coverage detected