# `GSExportSettingsViewController setOKButtonMode:`

*Instance Method*

Update the OK button mode on the enclosing GSExportSettingsWindowController.

## Declaration

```swift
func setOKButtonMode(_ mode: GSExportOKButtonMode)
```

```objc
- (void) setOKButtonMode:(GSExportOKButtonMode) mode;
```

```python
setOKButtonMode_(mode: GSExportOKButtonMode)
```

## Discussion

Call this whenever the export destination changes (e.g. from a path control checkbox).

