fix: prevent visual flickering (closes #115)
This commit is contained in:
1 parent
b9a0152f85
commit
9a8c83e39d
1 file changed
-1
@@ -97,7 +97,6 @@ class ThumbnailsPanel: NSPanel, NSCollectionViewDataSource, NSCollectionViewDele
|
||||
self.currentScreen = currentScreen
|
||||
(collectionView_.collectionViewLayout as! CollectionViewCenterFlowLayout).currentScreen = currentScreen
|
||||
collectionView_!.setFrameSize(Screen.thumbnailPanelMaxSize(currentScreen))
|
||||
collectionView_!.collectionViewLayout!.invalidateLayout()
|
||||
collectionView_!.reloadData()
|
||||
collectionView_!.layoutSubtreeIfNeeded()
|
||||
setContentSize(NSSize(width: collectionView_!.frame.size.width + Preferences.windowPadding * 2, height: collectionView_!.frame.size.height + Preferences.windowPadding * 2))
|
||||
|
||||
Reference in new issue
Block a user