def check_save_ability(self):
    if (self.repos_tree_widget.topLevelItemCount() < 1):
        self.save_button.setEnabled(False)
    else:
        self.save_button.setEnabled(True)
def check_save_ability(self):
    if (self.repos_tree_widget.topLevelItemCount() < 1):
        self.save_button.setEnabled(False)
    else:
        self.save_button.setEnabled(True)