Revision: 12195
          http://sourceforge.net/p/skim-app/code/12195
Author:   hofman
Date:     2021-03-10 16:52:45 +0000 (Wed, 10 Mar 2021)
Log Message:
-----------
Ignore color swatch frame changes on big sur

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

Modified: trunk/SKMainToolbarController.m
===================================================================
--- trunk/SKMainToolbarController.m     2021-03-10 16:31:21 UTC (rev 12194)
+++ trunk/SKMainToolbarController.m     2021-03-10 16:52:45 UTC (rev 12195)
@@ -706,8 +706,7 @@
             [colorSwatch sizeToFit];
             [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(handleColorSwatchColorsChangedNotification:)
                                                          
name:SKColorSwatchColorsChangedNotification object:colorSwatch];
-            if (!RUNNING_AFTER(10_15))
-                [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(handleColorSwatchFrameChangedNotification:)
+            [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(handleColorSwatchFrameChangedNotification:)
                                                          
name:NSViewFrameDidChangeNotification object:colorSwatch];
 
             menuItem = [NSMenuItem 
menuItemWithSubmenuAndTitle:NSLocalizedString(@"Favorite Colors", @"Toolbar 
item label")];
@@ -1068,6 +1067,8 @@
 }
 
 - (void)handleColorSwatchFrameChangedNotification:(NSNotification 
*)notification {
+    if (RUNNING_AFTER(10_15))
+        return;
     NSToolbarItem *toolbarItem = [self 
toolbarItemForItemIdentifier:SKDocumentToolbarColorSwatchItemIdentifier];
     NSSize size = [colorSwatch bounds].size;
     [toolbarItem setMinSize:size];

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