def check_enabled(self, group=-1, index=-1):

        return bool(load_settings().get("use_selections", True)) and self.view_has_selections(group, index)
Check if command is enabled.
dataset/ETHPy150Open facelessuser/EasyDiff/easy_diff_basic.py/EasyDiffCompareBothSelectionCommand.check_enabled