From 33a172ff2c528dac0e0f9ad10b1011233ea09bb6 Mon Sep 17 00:00:00 2001 From: Strategic Conquest Date: Sun, 13 Oct 2024 23:09:21 -0700 Subject: [PATCH] Restrict top tiling check to macOS 15.1 --- Rectangle/Utilities/MacTilingDefaults.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Rectangle/Utilities/MacTilingDefaults.swift b/Rectangle/Utilities/MacTilingDefaults.swift index eb6d5470..33a0883a 100644 --- a/Rectangle/Utilities/MacTilingDefaults.swift +++ b/Rectangle/Utilities/MacTilingDefaults.swift @@ -47,8 +47,6 @@ enum MacTilingDefaults: String { let isStandardTilingConflicting = (tilingByEdgeDrag.enabled || tilingOptionAccelerator.enabled) - let isTopTilingConflicting = topTilingByEdgeDrag.enabled && SnapAreaModel.instance.isTopConfigured - let shouldSkipStandardCheck = skipIfAlreadyNotified && Defaults.internalTilingNotified.enabled if isStandardTilingConflicting && !shouldSkipStandardCheck { @@ -76,6 +74,11 @@ enum MacTilingDefaults: String { } } + private static var isTopTilingConflicting: Bool { + guard #available(macOS 15.1, *) else { return false } + return topTilingByEdgeDrag.enabled && SnapAreaModel.instance.isTopConfigured + } + private static func resolveStandardTilingConflict() { let result = AlertUtil.threeButtonAlert( question: "Conflict with macOS tiling".localized,