fixed an issue where buttons corresponding to saved pen width and eraser width would not be checked (at start)

preferencesAboutTextFull
Clément Fauconnier 3 years ago
parent d3e82de307
commit 4f4c2e47cc
  1. 3
      src/board/UBBoardController.cpp

@ -346,6 +346,8 @@ void UBBoardController::setupToolbar()
, lineWidthChoice, SLOT(setCurrentIndex(int))); , lineWidthChoice, SLOT(setCurrentIndex(int)));
lineWidthChoice->displayText(QVariant(settings->appToolBarDisplayText->get().toBool())); lineWidthChoice->displayText(QVariant(settings->appToolBarDisplayText->get().toBool()));
lineWidthChoice->setCurrentIndex(settings->penWidthIndex());
lineWidthActions.at(settings->penWidthIndex())->setChecked(true);
mMainWindow->boardToolBar->insertWidget(mMainWindow->actionBackgrounds, lineWidthChoice); mMainWindow->boardToolBar->insertWidget(mMainWindow->actionBackgrounds, lineWidthChoice);
@ -367,6 +369,7 @@ void UBBoardController::setupToolbar()
eraserWidthChoice->displayText(QVariant(settings->appToolBarDisplayText->get().toBool())); eraserWidthChoice->displayText(QVariant(settings->appToolBarDisplayText->get().toBool()));
eraserWidthChoice->setCurrentIndex(settings->eraserWidthIndex()); eraserWidthChoice->setCurrentIndex(settings->eraserWidthIndex());
eraserWidthActions.at(settings->eraserWidthIndex())->setChecked(true);
mMainWindow->boardToolBar->insertSeparator(mMainWindow->actionBackgrounds); mMainWindow->boardToolBar->insertSeparator(mMainWindow->actionBackgrounds);

Loading…
Cancel
Save