Revision: 15509
          http://sourceforge.net/p/skim-app/code/15509
Author:   hofman
Date:     2025-06-20 16:20:32 +0000 (Fri, 20 Jun 2025)
Log Message:
-----------
make sure subtitle is set on normal window

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2025-06-20 15:57:50 UTC (rev 15508)
+++ trunk/SKMainWindowController.m      2025-06-20 16:20:32 UTC (rev 15509)
@@ -660,10 +660,10 @@
 
 - (void)updateSubtitle {
     if (@available(macOS 11.0, *)) {
+        NSString *subtitle = @"";
         if ([pdfView document])
-            [[self window] setSubtitle:[NSString 
stringWithFormat:NSLocalizedString(@"Page %ld of %ld", @""), (long)([[[self 
pdfView] currentPage] pageIndex] + 1), (long)[[pdfView document] pageCount]]];
-        else
-            [[self window] setSubtitle:@""];
+            subtitle = [NSString stringWithFormat:NSLocalizedString(@"Page %ld 
of %ld", @""), (long)([[[self pdfView] currentPage] pageIndex] + 1), 
(long)[[pdfView document] pageCount]];
+        [([self interactionMode] == SKPresentationMode ? savedNormalWindow : 
[self window]) setSubtitle:subtitle];
     } else {
         [self synchronizeWindowTitleWithDocumentName];
     }

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to