Update Fill Icon in toolbar on toolchange

upstream-master
idotobi 5 years ago committed by Fabian Keßler
parent 8fbad4afc2
commit bc762df22f
  1. 11
      src/control/Control.cpp

@ -1678,20 +1678,19 @@ void Control::toolChanged() {
fireEnableAction(ACTION_SHAPE_RECOGNIZER, toolHandler->hasCapability(TOOL_CAP_RECOGNIZER));
bool enableSize = toolHandler->hasCapability(TOOL_CAP_SIZE);
fireEnableAction(ACTION_SIZE_MEDIUM, enableSize);
fireEnableAction(ACTION_SIZE_THICK, enableSize);
fireEnableAction(ACTION_SIZE_FINE, enableSize);
fireEnableAction(ACTION_SIZE_VERY_THICK, enableSize);
fireEnableAction(ACTION_SIZE_VERY_FINE, enableSize);
if (enableSize) {
toolSizeChanged();
}
bool enableFill = toolHandler->hasCapability(TOOL_CAP_FILL);
fireEnableAction(ACTION_TOOL_FILL, enableFill);
if (enableSize) {
toolSizeChanged();
if (enableFill) {
toolFillChanged();
}
// Update color

Loading…
Cancel
Save