mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-05 12:15:32 +00:00
improved as per aparajita
This commit is contained in:
1 parent
7d51a34d11
commit
62670a4fa4
1 file changed
+2
-1
@@ -218,6 +218,7 @@ var _CPUndoGroupingParentKey = @"_CPUndoGroupingParentKey",
|
||||
_redoStack = [];
|
||||
_undoStack = [];
|
||||
|
||||
_disableCount = 0;
|
||||
_state = CPUndoManagerNormal;
|
||||
|
||||
[self setRunLoopModes:[CPDefaultRunLoopMode]];
|
||||
@@ -576,7 +577,7 @@ if (_currentGroup == nil)
|
||||
*/
|
||||
- (BOOL)isUndoRegistrationEnabled
|
||||
{
|
||||
return !_disableCount;
|
||||
return _disableCount == 0;
|
||||
}
|
||||
|
||||
// Checking Whether Undo or Redo Is Being Performed
|
||||
|
||||
Reference in new issue
Block a user