feat: hide space labels when showing same-space windows

follow-up to #3766
This commit is contained in:
lwouis committed 2024-11-04 17:38:12 +01:00
1 parent a8498bb7f6
commit 88c1595deb
1 file changed
+5 -2
+5 -2
View File
@@ -308,8 +308,11 @@ class ThumbnailView: NSStackView {
assignIfDifferent(&hiddenIcon.isHidden, !element.isHidden || Preferences.hideStatusIcons)
assignIfDifferent(&fullscreenIcon.isHidden, !element.isFullscreen || Preferences.hideStatusIcons)
assignIfDifferent(&minimizedIcon.isHidden, !element.isMinimized || Preferences.hideStatusIcons)
assignIfDifferent(&spaceIcon.isHidden, element.isWindowlessApp || Spaces.isSingleSpace() || Preferences.hideSpaceNumberLabels
|| (NSScreen.screens.count < 2 && Preferences.spacesToShow[App.app.shortcutIndex] == .visible))
assignIfDifferent(&spaceIcon.isHidden, element.isWindowlessApp || Spaces.isSingleSpace() || Preferences.hideSpaceNumberLabels || (
Preferences.spacesToShow[App.app.shortcutIndex] == .visible && (
NSScreen.screens.count < 2 || Preferences.screensToShow[App.app.shortcutIndex] == .showingAltTab
)
))
if !spaceIcon.isHidden {
if element.spaceIndex > 30 || element.isOnAllSpaces {
spaceIcon.setStar()