Skip to content

Commit ae8ab39

Browse files
committed
More polishing
1 parent 9abeaca commit ae8ab39

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: MacsyZones/Macsy.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ func isElementResizable(element: AXUIElement) -> Bool {
349349
return resizable.boolValue
350350
}
351351

352-
func resizeAndMoveWindow(element: AXUIElement, newPosition: CGPoint, newSize: CGSize, retries: Int = 0) {
353-
if !isElementResizable(element: element) {
352+
func resizeAndMoveWindow(element: AXUIElement, newPosition: CGPoint, newSize: CGSize, retries: Int = 0, retryParent: Bool = false) {
353+
if retryParent && !isElementResizable(element: element) {
354354
print("Window is not resizable! Trying parent window...")
355355

356356
while true {

Diff for: MacsyZones/Updater.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class GitHubAPI {
109109
{
110110
let version = tagName.replacingOccurrences(of: "v", with: "")
111111
let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as! String
112-
let isGreater = true || isVersionGreater(version, than: appVersion)
112+
let isGreater = isVersionGreater(version, than: appVersion)
113113

114114
onChecked(isGreater ? (version: version, url: URL(string: downloadUrl)!): nil)
115115
} else {

0 commit comments

Comments
 (0)