Skip to content

Commit

Permalink
remove Updater stuff in Entrance
Browse files Browse the repository at this point in the history
  • Loading branch information
godbout committed Aug 12, 2023
1 parent 6d8a188 commit 258f187
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions Sources/WooshyWindowToTheForeground/Menus/Entrance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ class Entrance {
.variable(Variable(name: "action", value: "headToGitHubIssues"))
)

if let release = Updater.updateAvailable() {
ScriptFilter.add(updateItem(for: release))
}

return ScriptFilter.output()
}

Expand Down Expand Up @@ -88,10 +84,6 @@ class Entrance {
}
}

if let release = Updater.updateAvailable() {
ScriptFilter.add(updateItem(for: release))
}

return ScriptFilter.output()
}

Expand All @@ -100,19 +92,6 @@ class Entrance {

extension Entrance {

private static func updateItem(for release: ReleaseInfo) -> Item {
Item(title: "Update available! (\(release.version))")
.subtitle("Press ↵ to update, or ⌘↵ to take a trip to the release page")
.arg("do")
.variable(Variable(name: "AlfredWorkflowUpdater_action", value: "update"))
.mod(
Cmd()
.subtitle("Say hello to the release page")
.arg("do")
.variable(Variable(name: "AlfredWorkflowUpdater_action", value: "open"))
)
}

private static func visibleWindows() -> [Window]? {
guard let cgVisibleWindows = cgVisibleWindows() else { return nil }

Expand Down

0 comments on commit 258f187

Please sign in to comment.