simplify if statement
simplify if statement

just do the selectDocumentAndAdjustContext every time except when documet is selectedMainTypeDocument. it improves readability a bit and performance is not be critical here

codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client