Fixed: sending CPWindow setAutorecalculatesKeyViewLoop:NO caused the window to recalculate the key view loop.

Although the intention might have been to do 'one final calculation run to provide a sensible default', the result is unintuitive and does not match Cocoa's behaviour.

If the key view loop has been manually set up and the user then calls `setAutorecalculatesKeyViewLoop:NO` they don't expect their work to be overwritten.
This commit is contained in:
Alexander Ljungberg committed 2012-03-01 20:35:20 +00:00
1 parent 55a4afa341
commit 0f655e3264
1 file changed
+1 -3
+1 -3
View File
@@ -2500,9 +2500,7 @@ CPTexturedBackgroundWindowMask
_autorecalculatesKeyViewLoop = shouldRecalculate;
if (_keyViewLoopIsDirty)
[self recalculateKeyViewLoop];
else if (_autorecalculatesKeyViewLoop)
if (_autorecalculatesKeyViewLoop)
[self _dirtyKeyViewLoop];
}