Revision: 14325
          http://sourceforge.net/p/skim-app/code/14325
Author:   hofman
Date:     2024-06-11 14:13:32 +0000 (Tue, 11 Jun 2024)
Log Message:
-----------
set accessibility description on main thread as label may not be thread safe

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2024-06-11 09:26:41 UTC (rev 14324)
+++ trunk/SKMainWindowController.m      2024-06-11 14:13:32 UTC (rev 14325)
@@ -2865,11 +2865,11 @@
     
     dispatch_async(queue, ^{
         NSImage *image = [page thumbnailWithSize:thumbnailCacheSize 
scale:scale forBox:box hasShadow:YES highlights:highlights];
-        [image setAccessibilityDescription:[NSString 
stringWithFormat:NSLocalizedString(@"Page %@", @""), [page displayLabel]]];
         
         dispatch_async(dispatch_get_main_queue(), ^{
             BOOL sameSize = NSEqualSizes([image size], [thumbnail size]);
             
+            [image setAccessibilityDescription:[NSString 
stringWithFormat:NSLocalizedString(@"Page %@", @""), [page displayLabel]]];
             [thumbnail setImage:image];
             
             if (sameSize == 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