Warn if "Prefer tabs when opening documents" is set to "Always".
()
| 98 | |
| 99 | |
| 100 | def preferTabsPreferenceWarning(): |
| 101 | """ |
| 102 | Warn if "Prefer tabs when opening documents" is set to "Always". |
| 103 | """ |
| 104 | if platform != 'darwin': |
| 105 | return None |
| 106 | |
| 107 | prefs = readSystemPreferences() |
| 108 | if prefs and prefs.get('AppleWindowTabbingMode') == 'always': |
| 109 | return ( |
| 110 | 'WARNING: The system preference "Prefer tabs when opening' |
| 111 | ' documents" is set to "Always". This will cause various problems' |
| 112 | ' with IDLE. For the best experience, change this setting when' |
| 113 | ' running IDLE (via System Preferences -> Dock).' |
| 114 | ) |
| 115 | return None |
| 116 | |
| 117 | |
| 118 | ## Fix the menu and related functions. |
nothing calls this directly
no test coverage detected
searching dependent graphs…