Refactor SourceFormatterController::updateFormatTextAction()
* reduce nesting to allow adding/removing checks without reindenting unrelated code; * cache the result of a call to virtual IDocument::url(); * move setEnabled() up because otherwise these most important calls are buried under the bulky code that sets tooltips and whatsthis.
parent
e2cbee0f
Please register or sign in to comment