'Applies the currently selected stash'

def stash_apply(self):

    selection = self.selected_stash()
    if (not selection):
        return
    index = self.keep_index.isChecked()
    cmds.do(ApplyStash, selection, index)
    self.accept()
    cmds.do(cmds.Rescan)
