app: error messages should happen on button press, not initialization.
The initialization is sometimes done when switching tools (for instance when selecting the active tool by command), not always on button press. So the error output behavior was inconsistent, and worse, the tool was sometimes not forbidden to run when it should have been. Just run all the checks (layer groups, locks and whatnot) on button press.
Showing with 31 additions and 56 deletions