Revision: 14537
          http://sourceforge.net/p/skim-app/code/14537
Author:   hofman
Date:     2024-10-09 21:15:18 +0000 (Wed, 09 Oct 2024)
Log Message:
-----------
rename method

Modified Paths:
--------------
    trunk/SKPresentationOptionsSheetController.m

Modified: trunk/SKPresentationOptionsSheetController.m
===================================================================
--- trunk/SKPresentationOptionsSheetController.m        2024-10-09 17:34:12 UTC 
(rev 14536)
+++ trunk/SKPresentationOptionsSheetController.m        2024-10-09 21:15:18 UTC 
(rev 14537)
@@ -171,7 +171,7 @@
     return array;
 }
 
-- (void)updateTableUI:(BOOL)initial {
+- (void)toggleTableAnimating:(BOOL)animate {
     NSWindow *window = [self window];
     
     NSView *scrollView = [tableView enclosingScrollView];
@@ -181,7 +181,7 @@
     if (separate)
         width += [tableWidthConstraint constant] + TABLE_OFFSET;
     
-    if (initial == NO && [NSView shouldShowSlideAnimation]) {
+    if (animate && [NSView shouldShowSlideAnimation]) {
         [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context){
                 [[boxLeadingConstraint animator] setConstant:width];
                 [[scrollView animator] setHidden:hidden];
@@ -193,7 +193,7 @@
     } else {
         [boxLeadingConstraint setConstant:width];
         [scrollView setHidden:hidden];
-        if (initial == NO) {
+        if (animate == NO) {
             NSRect frame = [window frame];
             [window setFrameOrigin:NSMakePoint(NSMidX([[controller window] 
frame]) - 0.5 * NSWidth(frame), NSMinY(frame))];
         }
@@ -247,7 +247,7 @@
         separate = YES;
         [self didChangeValueForKey:SEPARATE_KEY];
         [self setTransitions:[self makeTransitions:pageTransitions]];
-        [self updateTableUI:YES];
+        [self toggleTableAnimating:NO];
     }
     
     // set the current notes document and observe changes for the popup
@@ -450,7 +450,7 @@
         // undo or redo will include updateTransitions: in the same group
         if ([[self undoManager] isUndoing] == NO && [[self undoManager] 
isRedoing] == NO)
             [self updateTransitions:separate ? [self makeTransitions:nil] : 
@[transition]];
-        [self updateTableUI:NO];
+        [self toggleTableAnimating:YES];
         
         [[[self undoManager] prepareWithInvocationTarget:self] 
setSeparate:separate == NO];
     }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to