Skip to content

Commit

Permalink
feat: hide space labels when showing same-space windows
Browse files Browse the repository at this point in the history
follow-up to #3766
  • Loading branch information
lwouis committed Nov 4, 2024
1 parent a8498bb commit 88c1595
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ui/main-window/ThumbnailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 88c1595

Please sign in to comment.