mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 07:10:40 +01:00
[solver] Fix brace: when there are the 'add equation' is not displayed
anymore, brace embrace all equations
This commit is contained in:
@@ -200,7 +200,8 @@ bool ListController::removeModelRow(ExpressionModel * model) {
|
||||
|
||||
void ListController::reloadBrace() {
|
||||
EquationListView * listView = static_cast<EquationListView *>(view());
|
||||
listView->displayBrace(m_equationStore->numberOfModels() > 1);
|
||||
EquationListView::BraceStyle braceStyle = m_equationStore->numberOfModels() <= 1 ? EquationListView::BraceStyle::None : (m_equationStore->numberOfModels() == m_equationStore->maxNumberOfModels() ? EquationListView::BraceStyle::Full : EquationListView::BraceStyle::OneRowShort);
|
||||
listView->setBraceStyle(braceStyle);
|
||||
listView->layoutSubviews();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user