fix: hide minimize and fullscreen thumbnail buttons for tabs

This commit is contained in:
decodism authored and Louis Pontoise committed 2022-11-02 18:19:22 +01:00
1 parent f2305429c4
commit b62c422959
1 file changed
+2 -1
+2 -1
View File
@@ -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,