Revision: 15284
http://sourceforge.net/p/skim-app/code/15284
Author: hofman
Date: 2025-05-25 14:29:16 +0000 (Sun, 25 May 2025)
Log Message:
-----------
do not use a variable
Modified Paths:
--------------
trunk/SKMainWindowController_FullScreen.m
Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m 2025-05-25 14:23:46 UTC (rev
15283)
+++ trunk/SKMainWindowController_FullScreen.m 2025-05-25 14:29:16 UTC (rev
15284)
@@ -266,11 +266,13 @@
if ([self presentationNotesDocument])
[self showNotesForPresentationWindow:presentationWindow];
- BOOL isInTab = [[mainWindow tabbedWindows] count] > 1;
- if (isInTab) {
+ BOOL shouldFadeOut = NO;
+ if ([[mainWindow tabbedWindows] count] > 1) {
NSUInteger tabIndex = [[mainWindow tabbedWindows]
indexOfObject:mainWindow];
[savedNormalSetup setObject:[mainWindow tabGroup] forKey:TABGROUP_KEY];
[savedNormalSetup setObject:[NSNumber
numberWithUnsignedInteger:tabIndex] forKey:TABINDEX_KEY];
+ } else if (NSContainsRect([presentationWindow frame], [mainWindow frame])
== NO) {
+ shouldFadeOut = YES;
}
[mainWindow setDelegate:nil];
@@ -283,8 +285,6 @@
if (activity == nil)
activity = [[NSProcessInfo processInfo]
beginActivityWithOptions:NSActivityUserInitiated |
NSActivityIdleDisplaySleepDisabled | NSActivityIdleSystemSleepDisabled
reason:@"Presentation"];
- BOOL shouldFadeOut = NSContainsRect([presentationWindow frame],
[mainWindow frame]) == NO && isInTab == NO;
-
[NSAnimationContext runAnimationGroup:^(NSAnimationContext *context) {
[context setDuration:PRESENTATION_DURATION];
[context setTimingFunction:[CAMediaTimingFunction
functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
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