Skip to content

Commit

Permalink
fix: hide minimize and fullscreen thumbnail buttons for tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
decodism authored and lwouis committed Nov 2, 2022
1 parent f230542 commit b62c422
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/main-window/ThumbnailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ class ThumbnailView: NSStackView {
[quitIcon, closeIcon, minimizeIcon, maximizeIcon].forEach { icon in
icon.isHidden = !shouldShow ||
((window_?.isWindowlessApp ?? true) && icon.type != .quit) ||
(icon.type == .quit && window_?.application.runningApplication.bundleIdentifier == "com.apple.finder" && !Preferences.finderShowsQuitMenuItem)
(icon.type == .quit && window_?.application.runningApplication.bundleIdentifier == "com.apple.finder" && !Preferences.finderShowsQuitMenuItem) ||
((icon.type == .miniaturize || icon.type == .fullscreen) && (window_?.isTabbed ?? true))
if !icon.isHidden {
icon.setFrameOrigin(NSPoint(
x: xOffset,
Expand Down

0 comments on commit b62c422

Please sign in to comment.