'Apply persistent settings'

def apply_state(self, state):

    result = RemoteActionDialog.apply_state(self, state)
    rebase = bool(state.get(u'rebase', False))
    ff_only = ((not rebase) and bool(state.get(u'ff_only', False)))
    no_ff = ((not rebase) and (not ff_only) and bool(state.get(u'no_ff', False)))
    self.rebase_checkbox.setChecked(rebase)
    self.no_ff_checkbox.setChecked(no_ff)
    if ((u'ff_only' in state) or rebase):
        self.ff_only_checkbox.setChecked(ff_only)
    return result
