Skip to content

Commit

Permalink
fix: prevent visual flickering (closes #115)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis.pontoise authored and lwouis committed Mar 10, 2020
1 parent b9a0152 commit 9a8c83e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion alt-tab-macos/ui/ThumbnailsPanel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9a8c83e

Please sign in to comment.