sindresorhus / Settings

⚙ Add a settings window to your macOS app in minutes
MIT License
1.45k stars 100 forks source link

Activating tab #52

Closed vojto closed 4 years ago

vojto commented 4 years ago

I'm trying to programmatically activate tab in preferences window. Without showing or repositioning window.

I didn't find any better way other than adding a new method to PreferencesWindowController.

sindresorhus commented 4 years ago

I think it would be better to modify the existing .show method to only activate the chosen tab if the window is already active.

sindresorhus commented 4 years ago

@vojto Bump